Skip to contentSkip to conversation

drivers/bluetooth/btintel_pcie.c:607:33: sparse: sparse: symbol 'causes_list' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message May 9, 2024 Memory management

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:   704ba27ac55579704ba1289392448b0c66b56258
commit: 0636fdbb117aad116d33b04dc38f346ba243e1a2 [11453/12321] Bluetooth: btintel_pcie: Add support for PCIe transport
config: powerpc64-randconfig-r133-20240510 (https://download.01.org/0day-ci/archive/20240510/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240510/[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/bluetooth/btintel_pcie.c:607:33: sparse: sparse: symbol 'causes_list' was not declared. Should it be static?

vim +/causes_list +607 drivers/bluetooth/btintel_pcie.c

606

 > 607	struct btintel_pcie_causes_list causes_list[] = {

608 { BTINTEL_PCIE_MSIX_FH_INT_CAUSES_0, BTINTEL_PCIE_CSR_MSIX_FH_INT_MASK, 0x00 },
609 { BTINTEL_PCIE_MSIX_FH_INT_CAUSES_1, BTINTEL_PCIE_CSR_MSIX_FH_INT_MASK, 0x01 },
610 { BTINTEL_PCIE_MSIX_HW_INT_CAUSES_GP0, BTINTEL_PCIE_CSR_MSIX_HW_INT_MASK, 0x20 },
611 };
612

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki