On Thu, Jan 07, 2021 at 10:15:44AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > In file included from fs/erofs/xattr.h:10, > from fs/erofs/namei.c:7: > fs/erofs/namei.c: In function 'erofs_lookup': > fs/erofs/internal.h:23:21: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'struct dentry *' [-Wformat=] > 23 | #define pr_fmt(fmt) "erofs: " fmt > | ^~~~~~~~~ > include/linux/dynamic_debug.h:129:15: note: in expansion of macro 'pr_fmt' > 129 | func(&id, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ > include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call' > 147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__) > | ^~~~~~~~~~~~~~~~~~~ > include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call' > 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ > | ^~~~~~~~~~~~~~~~~~ > include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug' > 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) > | ^~~~~~~~~~~~~~~~ > fs/erofs/internal.h:34:33: note: in expansion of macro 'pr_debug' > 34 | #define erofs_dbg(x, ...) pr_debug(x "\n", ##__VA_ARGS__) > | ^~~~~~~~ > fs/erofs/namei.c:237:3: note: in expansion of macro 'erofs_dbg' > 237 | erofs_dbg("%pd, %s (nid %llu) found, d_type %u", __func__, > | ^~~~~~~~~ > > Introduced by commit > > 879d4376533c ("erofs: use %pd instead of messing with ->d_name") Gyah... "%s, %pd", not "%pd, %s". Sorry, fixed and pushed.