From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Hit this compile error: include/traceevent/kbuffer.h:32:39: warning: ‘struct tep_handle’ declared inside parameter list will not be visible outside of this definition or declaration 32 | struct kbuffer *kbuffer_create(struct tep_handle *tep); kbuffer.h does not include event-parse.h, so it needs to declare sturct tep_handle too. Fixes: 21ba633645 ("libtraceevent: Add kbuffer_create()") Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- include/traceevent/kbuffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/traceevent/kbuffer.h b/include/traceevent/kbuffer.h index 66b095833b81..c8983a000585 100644 --- a/include/traceevent/kbuffer.h +++ b/include/traceevent/kbuffer.h @@ -27,6 +27,7 @@ enum { }; struct kbuffer; +struct tep_handle; struct kbuffer *kbuffer_alloc(enum kbuffer_long_size size, enum kbuffer_endian endian); struct kbuffer *kbuffer_create(struct tep_handle *tep); -- 2.35.1