platform/x86: dell-wmi-sysman: fw_attr_inuse can be static
authorkernel test robot <lkp@intel.com>
Thu, 3 Jun 2021 15:39:36 +0000 (23:39 +0800)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Jun 2021 15:47:52 +0000 (17:47 +0200)
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 <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20210603153936.GA65404@7832cb195c0b
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/firmware_attributes_class.c

index d62ec3d..fafe8ea 100644 (file)
@@ -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",