diff options
author | Zou Wei <zou_wei@huawei.com> | 2020-11-30 14:11:53 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-12-03 10:53:47 +0300 |
commit | 0c683e9de0c78ee53e220eac9ee3604ca662737a (patch) | |
tree | 7f8fb30ccd7c94a99ff3def01488b7df221045a7 /drivers/platform | |
parent | 18d047bd89b8c1f9ba3c9b2d2f7309c953b3ce97 (diff) | |
download | linux-0c683e9de0c78ee53e220eac9ee3604ca662737a.tar.xz |
x86/platform/uv: Make uv_pcibus_kset and uv_hubs_kset static
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
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/uv_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/uv_sysfs.c b/drivers/platform/x86/uv_sysfs.c index e17ce8c4cdad..c27f5ffd43bb 100644 --- a/drivers/platform/x86/uv_sysfs.c +++ b/drivers/platform/x86/uv_sysfs.c @@ -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; |