Skip to content

Commit 72e487b

Browse files
houlz0507superm1
authored andcommitted
accel/amdxdna: Declare force_cmdlist as static
Fix sparse warning: symbol 'force_cmdlist' was not declared. Should it be static? Fixes: aac2430 ("accel/amdxdna: Add command execution") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412311448.GKQj7uPZ-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-5-lizhi.hou@amd.com
1 parent 1f74400 commit 72e487b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/accel/amdxdna/aie2_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "amdxdna_mailbox.h"
2323
#include "amdxdna_pci_drv.h"
2424

25-
bool force_cmdlist;
25+
static bool force_cmdlist;
2626
module_param(force_cmdlist, bool, 0600);
2727
MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default false)");
2828

0 commit comments

Comments
 (0)