[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-025e32048f39e24d8ddf9369d679644ea2bdcce6@git.kernel.org>
Date: Fri, 14 Jun 2019 11:34:11 -0700
From: tip-bot for YueHaibing <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hulkci@...wei.com, Brian.Woods@....com, puwen@...on.cn,
x86@...nel.org, mingo@...hat.com, tglx@...utronix.de,
hpa@...or.com, linux@...ck-us.net, bhelgaas@...gle.com,
mingo@...nel.org, bp@...e.de, yuehaibing@...wei.com,
linux-kernel@...r.kernel.org
Subject: [tip:x86/cleanups] x86/amd_nb: Make hygon_nb_misc_ids static
Commit-ID: 025e32048f39e24d8ddf9369d679644ea2bdcce6
Gitweb: https://git.kernel.org/tip/025e32048f39e24d8ddf9369d679644ea2bdcce6
Author: YueHaibing <yuehaibing@...wei.com>
AuthorDate: Fri, 14 Jun 2019 23:54:41 +0800
Committer: Borislav Petkov <bp@...e.de>
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?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>
Cc: Brian Woods <Brian.Woods@....com>
Cc: Guenter Roeck <linux@...ck-us.net>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: Pu Wen <puwen@...on.cn>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: x86-ml <x86@...nel.org>
Link: https://lkml.kernel.org/r/20190614155441.22076-1-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 cc51275c8759..922e8fd5426f 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) },
{}
};
Powered by blists - more mailing lists