* [jlayton:uek-localio 1992/2262] include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int'
@ 2025-05-24 19:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-24 19:37 UTC (permalink / raw)
To: Aron Silverton
Cc: oe-kbuild-all, LUCI Bot, Qing Huang, Sharath Srinivasan,
Mark Haywood
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git uek-localio
head: 65b0dc6bb1f5c18e63d8ee9ea1cca997456a81a9
commit: a45cb1526ebd3fc9c0438d4885c26291743b49e5 [1992/2262] mstflint_access: Enable the mstflint_access module
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250525/202505250351.6OveeJbb-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250525/202505250351.6OveeJbb-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505250351.6OveeJbb-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:31,
from drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:36:
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c: In function 'print_opcode':
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:751:9: note: in expansion of macro 'mst_info'
751 | mst_info("MST_PARAMS=%lx\n", MST_PARAMS);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:753:9: note: in expansion of macro 'mst_info'
753 | mst_info("PCICONF_READ4=%lx\n", PCICONF_READ4);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:754:9: note: in expansion of macro 'mst_info'
754 | mst_info("PCICONF_WRITE4=%lx\n", PCICONF_WRITE4);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:755:9: note: in expansion of macro 'mst_info'
755 | mst_info("PCIMEM_READ4=%lx\n", PCIMEM_READ4);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:756:9: note: in expansion of macro 'mst_info'
756 | mst_info("PCIMEM_WRITE4=%lx\n", PCIMEM_WRITE4);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:758:9: note: in expansion of macro 'mst_info'
758 | mst_info("PCIMEM_READ_BLOCK=%lx\n", PCIMEM_READ_BLOCK);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:759:9: note: in expansion of macro 'mst_info'
759 | mst_info("PCIMEM_WRITE_BLOCK=%lx\n", PCIMEM_WRITE_BLOCK);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:761:9: note: in expansion of macro 'mst_info'
761 | mst_info("PCICONF_INIT=%lx\n", PCICONF_INIT);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:764:9: note: in expansion of macro 'mst_info'
764 | mst_info("PCIMEM_INIT=%lx\n", PCIMEM_INIT);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:767:9: note: in expansion of macro 'mst_info'
767 | mst_info("PCI_CONNECTX_WA=%lx\n", PCI_CONNECTX_WA);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:769:9: note: in expansion of macro 'mst_info'
769 | mst_info("PCICONF_VPD_READ4=%lx\n", PCICONF_VPD_READ4);
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:574:9: note: in expansion of macro 'printk'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
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:574:16: note: in expansion of macro 'KERN_INFO'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_kernel.h:49:9: note: in expansion of macro 'pr_info'
49 | pr_info("%s: %s %d: " format, MST_PREFIX, __func__, __LINE__, ## arg)
| ^~~~~~~
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c:770:9: note: in expansion of macro 'mst_info'
770 | mst_info("PCICONF_VPD_WRITE4=%lx\n", PCICONF_VPD_WRITE4);
| ^~~~~~~~
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@perches.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-24 19:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-24 19:37 [jlayton:uek-localio 1992/2262] include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.