[ibft:linux-next 1/1] include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'}

kernel test robot
2021-08-03T06:51:41Z

[-- Attachment #1: Type: text/plain, Size: 2970 bytes --]

tree: https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git linux-next
head: 342f43af70dbc74f8629381998f92c060e1763a2
commit: 342f43af70dbc74f8629381998f92c060e1763a2 [1/1] iscsi_ibft: fix crash due to KASLR physical memory remapping
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git/commit/?id=342f43af70dbc74f8629381998f92c060e1763a2
git remote add ibft https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git
git fetch --no-tags ibft linux-next
git checkout 342f43af70dbc74f8629381998f92c060e1763a2
# save the attached .config to linux build tree
make W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

In file included from include/linux/printk.h:7,
from include/linux/kernel.h:17,
from include/asm-generic/bug.h:20,
from arch/x86/include/asm/bug.h:84,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/memblock.h:13,
from drivers/firmware/iscsi_ibft_find.c:13:
drivers/firmware/iscsi_ibft_find.c: In function 'reserve_ibft_region':
>> include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:9: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/firmware/iscsi_ibft_find.c:86:6: note: in expansion of macro 'pr_info'
86 | pr_info("iBFT found at 0x%lx.\n", ibft_phys_addr);
| ^~~~~~~

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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65523 bytes --]