[hverkuil-media-tree:for-v5.18f 76/82] include/linux/kern_levels.h:5:25: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'}

From: kernel test robot
Date: Fri Jan 14 2022 - 13:55:26 EST


tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.18f
head: 97dd85f0caf1ad96c275147583c46f8ee12308fc
commit: 63c049607882d11ee1cce0c739113c8dfd7fed02 [76/82] media: aspeed: add more debug log messages
config: arc-randconfig-r043-20220114 (https://download.01.org/0day-ci/archive/20220115/202201150246.rrQHjstb-lkp@xxxxxxxxx/config)
compiler: arceb-elf-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
git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media-tree for-v5.18f
git checkout 63c049607882d11ee1cce0c739113c8dfd7fed02
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/media/platform/

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

All warnings (new ones prefixed by >>):

In file included from include/linux/kernel.h:20,
from include/linux/clk.h:13,
from drivers/media/platform/aspeed-video.c:7:
drivers/media/platform/aspeed-video.c: In function 'aspeed_video_set_resolution':
>> include/linux/kern_levels.h:5:25: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap'
422 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/media/v4l2-common.h:58:9: note: in expansion of macro 'printk'
58 | printk(level "%s: " fmt, (dev)->name , ## arg)
| ^~~~~~
include/media/v4l2-common.h:74:25: note: in expansion of macro 'v4l2_printk'
74 | v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
| ^~~~~~~~~~~
include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
include/media/v4l2-common.h:74:37: note: in expansion of macro 'KERN_DEBUG'
74 | v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
| ^~~~~~~~~~
drivers/media/platform/aspeed-video.c:976:17: note: in expansion of macro 'v4l2_dbg'
976 | v4l2_dbg(1, debug, &video->v4l2_dev, "src buf0 addr(%#x) size(%d)\n",
| ^~~~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap'
422 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/media/v4l2-common.h:58:9: note: in expansion of macro 'printk'
58 | printk(level "%s: " fmt, (dev)->name , ## arg)
| ^~~~~~
include/media/v4l2-common.h:74:25: note: in expansion of macro 'v4l2_printk'
74 | v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
| ^~~~~~~~~~~
include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
include/media/v4l2-common.h:74:37: note: in expansion of macro 'KERN_DEBUG'
74 | v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
| ^~~~~~~~~~
drivers/media/platform/aspeed-video.c:978:17: note: in expansion of macro 'v4l2_dbg'
978 | v4l2_dbg(1, debug, &video->v4l2_dev, "src buf1 addr(%#x) size(%d)\n",
| ^~~~~~~~
In file included from include/linux/device.h:15,
from drivers/media/platform/aspeed-video.c:9:
drivers/media/platform/aspeed-video.c: In function 'aspeed_video_init':
drivers/media/platform/aspeed-video.c:1805:30: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t' {aka 'long long unsigned int'} [-Wformat=]
1805 | dev_info(video->dev, "alloc mem size(%d) at %#x for jpeg header\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt'
150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/media/platform/aspeed-video.c:1805:9: note: in expansion of macro 'dev_info'
1805 | dev_info(video->dev, "alloc mem size(%d) at %#x for jpeg header\n",
| ^~~~~~~~
drivers/media/platform/aspeed-video.c:1805:55: note: format string is defined here
1805 | dev_info(video->dev, "alloc mem size(%d) at %#x for jpeg header\n",
| ~~^
| |
| unsigned int
| %#llx


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@xxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx