linux-next: build warning after merge of the vfs tree
Hi Al,
After merging the vfs tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/fs_context.h:15,
from fs/fs_parser.c:13:
fs/fs_parser.c: In function 'fs_validate_description':
include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:303:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
fs/fs_parser.c:413:6: note: in expansion of macro 'pr_err'
pr_err("VALIDATE %s: e[%lu] enum val for %s\n",
^~~~~~
fs/fs_parser.c:413:31: note: format string is defined here
pr_err("VALIDATE %s: e[%lu] enum val for %s\n",
~~^
%uIntroduced by commit
f512b838c104 ("vfs: Add configuration parser helpers")
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 26 lines · On Mon, 4 Feb 2019 09:33:34 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the vfs tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:In file included from
include/linux/printk.h:7,from include/linux/kernel.h:14, from include/linux/fs_context.h:15, from fs/fs_parser.c:13: fs/fs_parser.c: In function 'fs_validate_description': include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:303:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ fs/fs_parser.c:413:6: note: in expansion of macro 'pr_err' pr_err("VALIDATE %s: e[%lu] enum val for %s\n", ^~~~~~ fs/fs_parser.c:413:31: note: format string is defined here pr_err("VALIDATE %s: e[%lu] enum val for %s\n", ~~^ %u
Quoted 3 lines
Introduced by commit
f512b838c104("vfs: Add configuration parser helpers")
We are now seeing that warning in Linus' tree :-(
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 28 lines · On Mon, 18 Mar 2019 11:00:50 +1100 Stephen Rothwell <[email protected]>…
Quoted 26 lines · On Mon, 4 Feb 2019 09:33:34 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the vfs tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:In file included from
include/linux/printk.h:7,from include/linux/kernel.h:14, from include/linux/fs_context.h:15, from fs/fs_parser.c:13: fs/fs_parser.c: In function 'fs_validate_description': include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:303:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ fs/fs_parser.c:413:6: note: in expansion of macro 'pr_err' pr_err("VALIDATE %s: e[%lu] enum val for %s\n", ^~~~~~ fs/fs_parser.c:413:31: note: format string is defined here pr_err("VALIDATE %s: e[%lu] enum val for %s\n", ~~^ %u
Quoted 5 lines
Quoted 3 lines
Introduced by commit
f512b838c104("vfs: Add configuration parser helpers")We are now seeing that warning in Linus' tree :-(
I am still getting the above warning ...
Signature · 2 lines
Cheers, Stephen Rothwell