Skip to contentSkip to conversation

drivers/accel/amdxdna/aie2_pci.c:21:5: sparse: sparse: symbol 'aie2_max_col' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Dec 31, 2024

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
commit: c88d3325ae69b30be7bb80080d211dbfced8003f [477/5236] accel/amdxdna: Add hardware resource solver
config: x86_64-randconfig-122-20241231 (https://download.01.org/0day-ci/archive/20241231/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241231/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> drivers/accel/amdxdna/aie2_pci.c:21:5: sparse: sparse: symbol 'aie2_max_col' was not declared. Should it be static?

drivers/accel/amdxdna/aie2_pci.c:259:34: sparse: sparse: cast removes address space '__iomem' of expression drivers/accel/amdxdna/aie2_pci.c:261:31: sparse: sparse: cast removes address space '__iomem' of expression

vim +/aie2_max_col +21 drivers/accel/amdxdna/aie2_pci.c

    20	
  > 21	int aie2_max_col = XRS_MAX_COL;
    22	module_param(aie2_max_col, uint, 0600);
    23	MODULE_PARM_DESC(aie2_max_col, "Maximum column could be used");
    24	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki