Skip to contentSkip to conversation

tracing: fix iomap.h build warnings

PATCH RESEND In review Randy Dunlap 2 participants 2 messages Aug 31, 2019 – Sep 1, 2019 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 tracing: fix iomap.h build warnings

From: Randy Dunlap <[email protected]>

Fix 30 warnings for missing "struct inode" declaration (like these) by adding a forward reference for it.
These warnings come from 'headers_check' (CONFIG_HEADERS_CHECK):
CC include/trace/events/iomap.h.s

./../include/trace/events/iomap.h:49:18: warning: 'struct inode' declared inside parameter list will not be visible outside of this definition or declaration ./../include/trace/events/iomap.h:77:18: warning: 'struct inode' declared inside parameter list will not be visible outside of this definition or declaration

Cc Steven Rostedt <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Darrick J. Wong <[email protected]>

---
Resend to correct maintainer(s).

 include/trace/events/iomap.h |    2 ++
 1 file changed, 2 insertions(+)
include/trace/events/iomap.h +2 -0
@@ -44,6 +44,8 @@ DECLARE_EVENT_CLASS(iomap_page_class,
 		  __entry->length)
 )
 
+struct inode;
+
 #define DEFINE_PAGE_EVENT(name)		\
 DEFINE_EVENT(iomap_page_class, name,	\
 	TP_PROTO(struct inode *inode, struct page *page, unsigned long off, \
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix 30 warnings for missing "struct inode" declaration (like these) by adding a forward reference for it.
These warnings come from 'headers_check' (CONFIG_HEADERS_CHECK):
CC include/trace/events/iomap.h.s

./../include/trace/events/iomap.h:49:18: warning: 'struct inode' declared inside parameter list will not be visible outside of this definition or declaration ./../include/trace/events/iomap.h:77:18: warning: 'struct inode' declared inside parameter list will not be visible outside of this definition or declaration

Quoted 6 lines
Cc Steven Rostedt <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Darrick J. Wong <[email protected]>

---
Resend to correct maintainer(s).

Looks ok, will add it to my tree. Thanks for the patch. :)

--D

Quoted 17 lines
 include/trace/events/iomap.h |    2 ++
 1 file changed, 2 insertions(+)
include/trace/events/iomap.h +2 -0
@@ -44,6 +44,8 @@ DECLARE_EVENT_CLASS(iomap_page_class,
 		  __entry->length)
 )
 
+struct inode;
+
 #define DEFINE_PAGE_EVENT(name)		\
 DEFINE_EVENT(iomap_page_class, name,	\
 	TP_PROTO(struct inode *inode, struct page *page, unsigned long off, \