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

* Re: [PATCH -next] x86/amd_nb: Make hygon_nb_misc_ids static
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Borislav Petkov @ 2019-06-14 17:51 UTC (permalink / raw)
  To: YueHaibing; +Cc: tglx, mingo, hpa, x86, puwen, bhelgaas, linux-kernel

On Fri, Jun 14, 2019 at 11:54:41PM +0800, YueHaibing wrote:
> 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>
	       ^^^^^^^^^^^^^^^^^

Ha, what is that? :)

A new test bot?

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

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

* [tip:x86/cleanups] x86/amd_nb: Make hygon_nb_misc_ids static
  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-14 18:34 ` tip-bot for YueHaibing
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for YueHaibing @ 2019-06-14 18:34 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: hulkci, Brian.Woods, puwen, x86, mingo, tglx, hpa, linux,
	bhelgaas, mingo, bp, yuehaibing, linux-kernel

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) },
 	{}
 };

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

* Re: [PATCH -next] x86/amd_nb: Make hygon_nb_misc_ids static
  2019-06-14 17:51 ` Borislav Petkov
@ 2019-06-15  3:02   ` Yuehaibing
  0 siblings, 0 replies; 4+ messages in thread
From: Yuehaibing @ 2019-06-15  3:02 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: tglx, mingo, hpa, x86, puwen, bhelgaas, linux-kernel


On 2019/6/15 1:51, Borislav Petkov wrote:
> On Fri, Jun 14, 2019 at 11:54:41PM +0800, YueHaibing wrote:
>> 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>
> 	       ^^^^^^^^^^^^^^^^^
> 
> Ha, what is that? :)
> 
> A new test bot?

Yes, our internal CI robot.

> 


^ permalink raw reply	[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