Messages in this thread | | | Date | Tue, 9 Aug 2022 20:19:22 +0800 | From | kernel test robot <> | Subject | drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:864:13: warning: variable 'r' set but not used |
| |
Hi Jack,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: eb555cb5b794f4e12a9897f3d46d5a72104cd4a7 commit: e3652b0976f383dea912607a404e974632b019b1 drm/amdgpu/mes: add helper functions to alloc/free ctx metadata date: 3 months ago config: arc-randconfig-r043-20220808 (https://download.01.org/0day-ci/archive/20220809/202208092032.V6o0PjnJ-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e3652b0976f383dea912607a404e974632b019b1 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e3652b0976f383dea912607a404e974632b019b1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:22, from arch/arc/include/asm/bug.h:30, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from include/asm-generic/current.h:5, from arch/arc/include/asm/current.h:20, from include/linux/mutex.h:14, 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); | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c: In function 'amdgpu_mes_ctx_alloc_meta_data': >> drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:864:13: warning: variable 'r' set but not used [-Wunused-but-set-variable] 864 | int r; | ^
vim +/r +864 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
860 861 int amdgpu_mes_ctx_alloc_meta_data(struct amdgpu_device *adev, 862 struct amdgpu_mes_ctx_data *ctx_data) 863 { > 864 int r; 865 866 r = amdgpu_bo_create_kernel(adev, 867 sizeof(struct amdgpu_mes_ctx_meta_data), 868 PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT, 869 &ctx_data->meta_data_obj, NULL, 870 &ctx_data->meta_data_ptr); 871 if (!ctx_data->meta_data_obj) 872 return -ENOMEM; 873 874 memset(ctx_data->meta_data_ptr, 0, 875 sizeof(struct amdgpu_mes_ctx_meta_data)); 876 877 return 0; 878 } 879
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |