[agd5f:drm-next 375/460] include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'}
From: kernel test robot
Date: Wed May 04 2022 - 18:27:57 EST
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: d6ffefccf7f04eefddc8e8aa35fb4afe05a42e0c
commit: 32de57e9ef59b6f646849a8bd615b7c978a4fa6d [375/460] drm/amdgpu/mes: manage mes doorbell allocation
config: parisc-buildonly-randconfig-r004-20220501 (https://download.01.org/0day-ci/archive/20220505/202205050614.sRcY9JVz-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 11.3.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 agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 32de57e9ef59b6f646849a8bd615b7c978a4fa6d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
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:29,
from include/linux/cpumask.h:10,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/mutex.h:17,
from include/linux/kernfs.h:11,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h:27,
from drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h:27,
from drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:24:
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c: In function 'amdgpu_mes_doorbell_init':
>> include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
418 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/drm/drm_print.h:494:9: note: in expansion of macro 'printk'
494 | printk##once(KERN_##level "[" DRM_NAME "] " 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/drm/drm_print.h:494:22: note: in expansion of macro 'KERN_INFO'
494 | printk##once(KERN_##level "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
| ^~~~~
include/drm/drm_print.h:498:9: note: in expansion of macro '_DRM_PRINTK'
498 | _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:131:9: note: in expansion of macro 'DRM_INFO'
131 | DRM_INFO("max_doorbell_slices=%ld\n", doorbell_process_limit);
| ^~~~~~~~
At top level:
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:105:12: warning: 'amdgpu_mes_doorbell_init' defined but not used [-Wunused-function]
105 | static int amdgpu_mes_doorbell_init(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:90:13: warning: 'amdgpu_mes_queue_doorbell_free' defined but not used [-Wunused-function]
90 | static void amdgpu_mes_queue_doorbell_free(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:59:12: warning: 'amdgpu_mes_queue_doorbell_get' defined but not used [-Wunused-function]
59 | static int amdgpu_mes_queue_doorbell_get(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:51:13: warning: 'amdgpu_mes_free_process_doorbells' defined but not used [-Wunused-function]
51 | static void amdgpu_mes_free_process_doorbells(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:39:12: warning: 'amdgpu_mes_alloc_process_doorbells' defined but not used [-Wunused-function]
39 | static int amdgpu_mes_alloc_process_doorbells(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +5 include/linux/kern_levels.h
314ba3520e513a7 Joe Perches 2012-07-30 4
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3ac 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
https://01.org/lkp