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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Lizhi Hou <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
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)