linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuffer: Add struct reference for tep_handle
@ 2022-12-06 21:20 Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2022-12-06 21:20 UTC (permalink / raw)
  To: Linux Trace Devel

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-06 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 21:20 [PATCH] kbuffer: Add struct reference for tep_handle Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).