Skip to contentSkip to conversation

x86/platform/uv: Mark some symbols with static keyword

PATCH Applied Zou Wei 3 participants 4 messages Nov 30, 2020 – Dec 3, 2020

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 x86/platform/uv: Mark some symbols with static keyword

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?

---
 drivers/platform/x86/uv_sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/uv_sysfs.c +2 -2
index 54c3425..c780a4b 100644
@@ -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;
Signature · 1 line
2.6.2
Acked-by on v1 1/1
#1 lore raw

Hi,

+Cc x86 folks

Quoted 6 lines · Zou Wei

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?

Since this is a fix to a series merged through the x86/tip tree, this should be merged to the x86/tip tree too (or I can pick it up after 5.11-rc1).

Here is my ack for merging this through the x86/tip tree:

Regards,

Hans

Quoted 20 lines
---
 drivers/platform/x86/uv_sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/uv_sysfs.c +2 -2
index 54c3425..c780a4b 100644
@@ -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;
author Acked-by Hans de Goede
#2 lore raw

Hi,

Please help to pick it up after 5.11-rc1, thanks a lot.

-----邮件原件-----
发件人: Hans de Goede [mailto:[email protected]]
发送时间: 2020年11月30日 21:31
收件人: Zouwei (Samuel) <[email protected]>; [email protected]; [email protected] 抄送: [email protected]; [email protected]; [email protected] 主题: Re: [PATCH -next] x86/platform/uv: Mark some symbols with static keyword

Hi,

+Cc x86 folks

Quoted 6 lines · Zou Wei

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?

Since this is a fix to a series merged through the x86/tip tree, this should be merged to the x86/tip tree too (or I can pick it up after 5.11-rc1).

Here is my ack for merging this through the x86/tip tree:

Regards,

Hans

Quoted 19 lines
---
 drivers/platform/x86/uv_sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/platform/x86/uv_sysfs.c index 54c3425..c780a4b 100644

drivers/platform/x86/uv_sysfs.c +2 -2
@@ -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;
 
merge bot Applied
#3 lore raw

[tip: x86/platform] x86/platform/uv: Make uv_pcibus_kset and uv_hubs_kset static

In reply to Zou Wei
The following commit has been merged into the x86/platform branch of tip:

The following commit has been merged into the x86/platform branch of tip:

Commit-ID:     0c683e9de0c78ee53e220eac9ee3604ca662737a
Gitweb:        https://git.kernel.org/tip/0c683e9de0c78ee53e220eac9ee3604ca662737a
Author:        Zou Wei <[email protected]>
AuthorDate:    Mon, 30 Nov 2020 19:11:53 +08:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Thu, 03 Dec 2020 08:53:47 +01:00

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?

---
 drivers/platform/x86/uv_sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/uv_sysfs.c +2 -2
index e17ce8c..c27f5ff 100644
@@ -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;