diff mbox series

kbuffer: Add struct reference for tep_handle

Message ID 20221206162000.289aca7a@gandalf.local.home (mailing list archive)
State Accepted
Commit f5a6c92721af5cbd129556f6e9ab0aadf48f8650
Headers show
Series kbuffer: Add struct reference for tep_handle | expand

Commit Message

Steven Rostedt Dec. 6, 2022, 9:20 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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@goodmis.org>
---
 include/traceevent/kbuffer.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);