Skip to content

Commit c199310

Browse files
houlz0507superm1
authored andcommitted
accel/amdxdna: Declare aie2_max_col as static
Fix the sparse warning: symbol 'aie2_max_col' was not declared. Should it be static? Fixes: c88d332 ("accel/amdxdna: Add hardware resource solver") 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 3c8cfec commit c199310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/accel/amdxdna/aie2_pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "amdxdna_mailbox.h"
2626
#include "amdxdna_pci_drv.h"
2727

28-
int aie2_max_col = XRS_MAX_COL;
28+
static int aie2_max_col = XRS_MAX_COL;
2929
module_param(aie2_max_col, uint, 0600);
3030
MODULE_PARM_DESC(aie2_max_col, "Maximum column could be used");
3131

0 commit comments

Comments
 (0)