Skip to contentSkip to conversation

x86/amd_nb: Make hygon_nb_misc_ids static

PATCH In review YueHaibing 3 participants 4 messages Jun 14, 2019 – Jun 15, 2019 x86

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 x86/amd_nb: Make hygon_nb_misc_ids static

Fix sparse warning:

arch/x86/kernel/amd_nb.c:74:28: warning:
symbol 'hygon_nb_misc_ids' was not declared. Should it be static?

---
 arch/x86/kernel/amd_nb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/amd_nb.c +1 -1
index cc51275..922e8fd 100644
@@ -71,7 +71,7 @@ static const struct pci_device_id hygon_root_ids[] = {
 	{}
 };
 
-const struct pci_device_id hygon_nb_misc_ids[] = {
+static const struct pci_device_id hygon_nb_misc_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
 	{}
 };
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 6 lines · YueHaibing

Fix sparse warning:

arch/x86/kernel/amd_nb.c:74:28: warning:
symbol 'hygon_nb_misc_ids' was not declared. Should it be static?

	       ^^^^^^^^^^^^^^^^^

Ha, what is that? :)

A new test bot?

Signature · 4 lines
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.
author
#2 lore raw
Quoted 6 lines · Borislav Petkov
Quoted 5 lines · YueHaibing

Fix sparse warning:

arch/x86/kernel/amd_nb.c:74:28: warning:
symbol 'hygon_nb_misc_ids' was not declared. Should it be static?

Quoted 6 lines
Quoted 1 line
	       ^^^^^^^^^^^^^^^^^

Ha, what is that? :)

A new test bot?

Yes, our internal CI robot.

Quoted 1 line
#3 lore raw
In reply to YueHaibing
x86/amd_nb: Make hygon_nb_misc_ids static
Commit-ID:  025e32048f39e24d8ddf9369d679644ea2bdcce6
Gitweb:     https://git.kernel.org/tip/025e32048f39e24d8ddf9369d679644ea2bdcce6
Author:     YueHaibing <[email protected]>
AuthorDate: Fri, 14 Jun 2019 23:54:41 +0800
Committer:  Borislav Petkov <[email protected]>
CommitDate: Fri, 14 Jun 2019 20:25:58 +0200

x86/amd_nb: Make hygon_nb_misc_ids static

Fix the following sparse warning:

arch/x86/kernel/amd_nb.c:74:28: warning:
symbol 'hygon_nb_misc_ids' was not declared. Should it be static?

---
 arch/x86/kernel/amd_nb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/amd_nb.c +1 -1
index cc51275c8759..922e8fd5426f 100644
@@ -71,7 +71,7 @@ static const struct pci_device_id hygon_root_ids[] = {
 	{}
 };
 
-const struct pci_device_id hygon_nb_misc_ids[] = {
+static const struct pci_device_id hygon_nb_misc_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
 	{}
 };