x86/platform/uv: Make uv_pcibus_kset and uv_hubs_kset static
authorZou Wei <zou_wei@huawei.com>
Mon, 30 Nov 2020 11:11:53 +0000 (19:11 +0800)
committerBorislav Petkov <bp@suse.de>
Thu, 3 Dec 2020 07:53:47 +0000 (08:53 +0100)
Fix the following sparse warnings:

  drivers/platform/x86/uv_sysfs.c:22:13: warning: symbol \
  'uv_pcibus_kset' was not declared. Should it be static?
  drivers/platform/x86/uv_sysfs.c:23:13: warning: symbol \
  'uv_hubs_kset' was not declared. Should it be static?

Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lkml.kernel.org/r/1606734713-43919-1-git-send-email-zou_wei@huawei.com
drivers/platform/x86/uv_sysfs.c

index e17ce8c4cdada7e6f42ce264733dfb5daa75791e..c27f5ffd43bb2d1e70d58350ecd530498404349e 100644 (file)
@@ -19,8 +19,8 @@
 #define INVALID_CNODE -1
 
 struct kobject *sgi_uv_kobj;
-struct kset *uv_pcibus_kset;
-struct kset *uv_hubs_kset;
+static struct kset *uv_pcibus_kset;
+static struct kset *uv_hubs_kset;
 static struct uv_bios_hub_info *hub_buf;
 static struct uv_bios_port_info **port_buf;
 static struct uv_hub **uv_hubs;