From: Lizhi Hou Date: Thu, 2 Jan 2025 21:22:42 +0000 (-0800) Subject: accel/amdxdna: Declare force_cmdlist as static X-Git-Tag: v6.14-rc1~174^2~10^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72e487b47d249f9226093b1c8eefba06c32803ef;p=thirdparty%2Fkernel%2Flinux.git accel/amdxdna: Declare force_cmdlist as static Fix sparse warning: symbol 'force_cmdlist' was not declared. Should it be static? Fixes: aac243092b70 ("accel/amdxdna: Add command execution") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202412311448.GKQj7uPZ-lkp@intel.com/ Signed-off-by: Lizhi Hou Reviewed-by: Mario Limonciello Signed-off-by: Mario Limonciello Link: https://patchwork.freedesktop.org/patch/msgid/20250102212244.1586340-5-lizhi.hou@amd.com --- diff --git a/drivers/accel/amdxdna/aie2_ctx.c b/drivers/accel/amdxdna/aie2_ctx.c index 9facf45818f9f..5f43db02b2404 100644 --- a/drivers/accel/amdxdna/aie2_ctx.c +++ b/drivers/accel/amdxdna/aie2_ctx.c @@ -22,7 +22,7 @@ #include "amdxdna_mailbox.h" #include "amdxdna_pci_drv.h" -bool force_cmdlist; +static bool force_cmdlist; module_param(force_cmdlist, bool, 0600); MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default false)");