From: kernel test robot Date: Thu, 3 Jun 2021 15:39:36 +0000 (+0800) Subject: platform/x86: dell-wmi-sysman: fw_attr_inuse can be static X-Git-Tag: v5.15~856^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae8ee4c1e43af131088bb2da1163fdb864f6f6a2;p=platform%2Fkernel%2Flinux-starfive.git platform/x86: dell-wmi-sysman: fw_attr_inuse can be static drivers/platform/x86/firmware_attributes_class.c:11:5: warning: symbol 'fw_attr_inuse' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot Link: https://lore.kernel.org/r/20210603153936.GA65404@7832cb195c0b Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/firmware_attributes_class.c b/drivers/platform/x86/firmware_attributes_class.c index d62ec3d..fafe8ea 100644 --- a/drivers/platform/x86/firmware_attributes_class.c +++ b/drivers/platform/x86/firmware_attributes_class.c @@ -8,7 +8,7 @@ #include "firmware_attributes_class.h" static DEFINE_MUTEX(fw_attr_lock); -int fw_attr_inuse; +static int fw_attr_inuse; static struct class firmware_attributes_class = { .name = "firmware-attributes",