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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412311028.x2UtcSHm-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-3-lizhi.hou@amd.com
1 parent 3c8cfec commit c199310

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)