accel/amdxdna: Declare npu device profile as static variables
authorLizhi Hou <lizhi.hou@amd.com>
Thu, 2 Jan 2025 21:22:38 +0000 (13:22 -0800)
committerMario Limonciello <mario.limonciello@amd.com>
Sat, 4 Jan 2025 05:37:52 +0000 (23:37 -0600)
commit71486e48370e8902e0816bba8b51a22871e5e653
tree3795d20f5982f7f4084a66f450bff89c627fae99
parent041d61ad66ea0d88890264e96e8f81437a33a9cf
accel/amdxdna: Declare npu device profile as static variables

Declare the variables as static to fix the sparse warnings:
symbol 'npu5_dev_priv' was not declared. Should it be static?
symbol 'npu1_dev_priv' was not declared. Should it be static?
symbol 'npu4_dev_priv' was not declared. Should it be static?
symbol 'npu2_dev_priv' was not declared. Should it be static?

Fixes: 8c9ff1b181ba ("accel/amdxdna: Add a new driver for AMD AI Engine")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412310648.dtMHgGem-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-1-lizhi.hou@amd.com
drivers/accel/amdxdna/npu1_regs.c
drivers/accel/amdxdna/npu2_regs.c
drivers/accel/amdxdna/npu4_regs.c
drivers/accel/amdxdna/npu5_regs.c