tree:
https://github.com/jimc/linux.git dd-drm-next
head: bf8f0832d11f09c546179ca6a2c5432706ea3d32
commit: 221a341c10ebb8545beac6ee3937859d26ddcc60 [3/16] dyndbg: rationalize verbosity
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/jimc/linux/commit/221a341c10ebb8545beac6ee3937859d26dd...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 221a341c10ebb8545beac6ee3937859d26ddcc60
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:19,
from lib/dynamic_debug.c:16:
lib/dynamic_debug.c: In function 'ddebug_proc_write':
> include/linux/kern_levels.h:5:25: warning: format '%u'
expects argument of type 'unsigned int', but argument 2 has type 'size_t'
{aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH
"\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:420:16: note: in expansion of macro 'KERN_INFO'
420 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
lib/dynamic_debug.c:116:17: note: in expansion of macro 'pr_info'
116 | pr_info(fmt, ##__VA_ARGS__); \
| ^~~~~~~
lib/dynamic_debug.c:120:33: note: in expansion of macro 'vnpr_info'
120 | #define v2pr_info(fmt, ...) vnpr_info(2, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
lib/dynamic_debug.c:786:9: note: in expansion of macro 'v2pr_info'
786 | v2pr_info("read %u bytes from userspace <\n%s>\n", len,
tmpbuf);
| ^~~~~~~~~
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII
Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for
KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org