public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] x86/amd_nb: Make hygon_nb_misc_ids static
@ 2019-06-14 15:54 YueHaibing
  2019-06-14 17:51 ` Borislav Petkov
  2019-06-14 18:34 ` [tip:x86/cleanups] " tip-bot for YueHaibing
  0 siblings, 2 replies; 4+ messages in thread
From: YueHaibing @ 2019-06-14 15:54 UTC (permalink / raw)
  To: tglx, mingo, bp, hpa, x86, puwen, bhelgaas; +Cc: linux-kernel, 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?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 arch/x86/kernel/amd_nb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c
index cc51275..922e8fd 100644
--- a/arch/x86/kernel/amd_nb.c
+++ b/arch/x86/kernel/amd_nb.c
@@ -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) },
 	{}
 };
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-15  3:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14 15:54 [PATCH -next] x86/amd_nb: Make hygon_nb_misc_ids static YueHaibing
2019-06-14 17:51 ` Borislav Petkov
2019-06-15  3:02   ` Yuehaibing
2019-06-14 18:34 ` [tip:x86/cleanups] " tip-bot for YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox