Skip to contentSkip to conversation

drivers/accel/amdxdna/npu5_regs.c:69:31: sparse: sparse: symbol 'npu5_dev_priv' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Dec 30, 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: 8c9ff1b181ba3d31d6b4a48606248b52180a7046 [475/5236] accel/amdxdna: Add a new driver for AMD AI Engine
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/npu5_regs.c:69:31: sparse: sparse: symbol 'npu5_dev_priv' was not declared. Should it be static?
--
>> drivers/accel/amdxdna/npu1_regs.c:52:31: sparse: sparse: symbol 'npu1_dev_priv' was not declared. Should it be static?
--
>> drivers/accel/amdxdna/npu4_regs.c:69:31: sparse: sparse: symbol 'npu4_dev_priv' was not declared. Should it be static?
--
>> drivers/accel/amdxdna/npu2_regs.c:69:31: sparse: sparse: symbol 'npu2_dev_priv' was not declared. Should it be static?

vim +/npu5_dev_priv +69 drivers/accel/amdxdna/npu5_regs.c

    68	
  > 69	const struct amdxdna_dev_priv npu5_dev_priv = {
    70		.fw_path        = "amdnpu/17f0_11/npu.sbin",
    71		.protocol_major = 0x6,
    72		.protocol_minor = 0x1,
    73		.rt_config	= {NPU5_RT_CFG_TYPE_PDI_LOAD, NPU5_RT_CFG_VAL_PDI_LOAD_APP},
    74		.col_align	= COL_ALIGN_NATURE,
    75		.mbox_dev_addr  = NPU5_MBOX_BAR_BASE,
    76		.mbox_size      = 0, /* Use BAR size */
    77		.sram_dev_addr  = NPU5_SRAM_BAR_BASE,
    78		.sram_offs      = {
    79			DEFINE_BAR_OFFSET(MBOX_CHANN_OFF, NPU5_SRAM, MPNPU_SRAM_X2I_MAILBOX_0),
    80			DEFINE_BAR_OFFSET(FW_ALIVE_OFF,   NPU5_SRAM, MPNPU_SRAM_X2I_MAILBOX_15),
    81		},
    82		.psp_regs_off   = {
    83			DEFINE_BAR_OFFSET(PSP_CMD_REG,    NPU5_PSP, MP0_C2PMSG_123),
    84			DEFINE_BAR_OFFSET(PSP_ARG0_REG,   NPU5_REG, MPNPU_PUB_SCRATCH3),
    85			DEFINE_BAR_OFFSET(PSP_ARG1_REG,   NPU5_REG, MPNPU_PUB_SCRATCH4),
    86			DEFINE_BAR_OFFSET(PSP_ARG2_REG,   NPU5_REG, MPNPU_PUB_SCRATCH9),
    87			DEFINE_BAR_OFFSET(PSP_INTR_REG,   NPU5_PSP, MP0_C2PMSG_73),
    88			DEFINE_BAR_OFFSET(PSP_STATUS_REG, NPU5_PSP, MP0_C2PMSG_123),
    89			DEFINE_BAR_OFFSET(PSP_RESP_REG,   NPU5_REG, MPNPU_PUB_SCRATCH3),
    90		},
    91		.smu_regs_off   = {
    92			DEFINE_BAR_OFFSET(SMU_CMD_REG,  NPU5_SMU, MP1_C2PMSG_0),
    93			DEFINE_BAR_OFFSET(SMU_ARG_REG,  NPU5_SMU, MP1_C2PMSG_60),
    94			DEFINE_BAR_OFFSET(SMU_INTR_REG, NPU5_SMU, MMNPU_APERTURE4_BASE),
    95			DEFINE_BAR_OFFSET(SMU_RESP_REG, NPU5_SMU, MP1_C2PMSG_61),
    96			DEFINE_BAR_OFFSET(SMU_OUT_REG,  NPU5_SMU, MP1_C2PMSG_60),
    97		},
    98		.smu_mpnpuclk_freq_max = NPU5_MPNPUCLK_FREQ_MAX,
    99		.smu_hclk_freq_max     = NPU5_HCLK_FREQ_MAX,

100 };
101

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