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 <[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 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)