Skip to content

Commit fee7aae

Browse files
houlz0507superm1
authored andcommitted
accel/amdxdna: Declare npu6_dev_priv as static
Fix sparse warning: symbol 'npu6_dev_priv' was not declared. Should it be static? Fixes: 273b517 ("accel/amdxdna: Add RyzenAI-npu6 support") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412311819.9mz11Uak-lkp@intel.com/ Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250102212244.1586340-7-lizhi.hou@amd.com
1 parent 3b5bcf6 commit fee7aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/accel/amdxdna/npu6_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#define NPU6_SMU_BAR_BASE MMNPU_APERTURE4_BASE
6262
#define NPU6_SRAM_BAR_BASE MMNPU_APERTURE1_BASE
6363

64-
const struct amdxdna_dev_priv npu6_dev_priv = {
64+
static const struct amdxdna_dev_priv npu6_dev_priv = {
6565
.fw_path = "amdnpu/17f0_10/npu.sbin",
6666
.protocol_major = 0x6,
6767
.protocol_minor = 12,

0 commit comments

Comments
 (0)