x86/platform/uv: Mark some symbols with static keyword
Subsystems (2)
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
@@ -19,8 +19,8 @@#define INVALID_CNODE -1struct 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
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?Signed-off-by Zou Wei <[email protected]>
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@@ -19,8 +19,8 @@#define INVALID_CNODE -1struct 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;
Zouwei (Samuel)
Acked-by Hans de GoedeHi,
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?Signed-off-by Zou Wei <[email protected]>
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.cindex 54c3425..c780a4b 100644drivers/platform/x86/uv_sysfs.c +2
-2@@ -19,8 +19,8 @@#define INVALID_CNODE -1struct 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;
[tip: x86/platform] x86/platform/uv: Make uv_pcibus_kset and uv_hubs_kset static
In reply to Zou WeiThe 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
@@ -19,8 +19,8 @@#define INVALID_CNODE -1struct 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;