From: tip-bot for YueHaibing <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: hulkci@huawei.com, Brian.Woods@amd.com, puwen@hygon.cn,
x86@kernel.org, mingo@redhat.com, tglx@linutronix.de,
hpa@zytor.com, linux@roeck-us.net, bhelgaas@google.com,
mingo@kernel.org, bp@suse.de, yuehaibing@huawei.com,
linux-kernel@vger.kernel.org
Subject: [tip:x86/cleanups] x86/amd_nb: Make hygon_nb_misc_ids static
Date: Fri, 14 Jun 2019 11:34:11 -0700 [thread overview]
Message-ID: <tip-025e32048f39e24d8ddf9369d679644ea2bdcce6@git.kernel.org> (raw)
In-Reply-To: <20190614155441.22076-1-yuehaibing@huawei.com>
Commit-ID: 025e32048f39e24d8ddf9369d679644ea2bdcce6
Gitweb: https://git.kernel.org/tip/025e32048f39e24d8ddf9369d679644ea2bdcce6
Author: YueHaibing <yuehaibing@huawei.com>
AuthorDate: Fri, 14 Jun 2019 23:54:41 +0800
Committer: Borislav Petkov <bp@suse.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@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Brian Woods <Brian.Woods@amd.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Pu Wen <puwen@hygon.cn>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.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) },
{}
};
prev parent reply other threads:[~2019-06-14 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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-bot for YueHaibing [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-025e32048f39e24d8ddf9369d679644ea2bdcce6@git.kernel.org \
--to=tipbot@zytor.com \
--cc=Brian.Woods@amd.com \
--cc=bhelgaas@google.com \
--cc=bp@suse.de \
--cc=hpa@zytor.com \
--cc=hulkci@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mingo@kernel.org \
--cc=mingo@redhat.com \
--cc=puwen@hygon.cn \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=yuehaibing@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox