On Mon, Aug 26, 2019 at 04:24:32PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the staging tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > In file included from include/trace/events/erofs.h:8, > from <command-line>: > include/trace/events/erofs.h:28:37: warning: 'struct dentry' declared inside parameter list will not be visible outside of this definition or declaration > TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), > ^~~~~~ > include/linux/tracepoint.h:233:34: note: in definition of macro '__DECLARE_TRACE' > static inline void trace_##name(proto) \ > ^~~~~ > include/linux/tracepoint.h:396:24: note: in expansion of macro 'PARAMS' > __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ > ^~~~~~ > include/linux/tracepoint.h:532:2: note: in expansion of macro 'DECLARE_TRACE' > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~~~~~~~~ > include/linux/tracepoint.h:532:22: note: in expansion of macro 'PARAMS' > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~ > include/trace/events/erofs.h:26:1: note: in expansion of macro 'TRACE_EVENT' > TRACE_EVENT(erofs_lookup, > ^~~~~~~~~~~ > include/trace/events/erofs.h:28:2: note: in expansion of macro 'TP_PROTO' > TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), > ^~~~~~~~ > > and moany more like this ... > > Introduced by commit > > 47e4937a4a7c ("erofs: move erofs out of staging") > > (or, at least, exposed by it). It needs, at least, a "struct dentry;" > added to the file. Odd, why has this never been seen before when the same files were in drivers/staging/ and why 0-day isn't reporting this? Gao, can you send me a patch for this? thanks, greg k-h