* [PATCH -next] xen: Fix a previous prototype warning in xen.c
@ 2020-09-24 14:36 Li Heng
2020-09-28 22:39 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Li Heng @ 2020-09-24 14:36 UTC (permalink / raw)
To: konrad.wilk, bhelgaas, tglx, mingo, bp
Cc: x86, hpa, xen-devel, linux-pci, linux-kernel
Fix the warning:
arch/x86/pci/xen.c:423:13: warning:
no previous prototype for ‘xen_msi_init’ [-Wmissing-prototypes]
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Li Heng <liheng40@huawei.com>
---
arch/x86/pci/xen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index 89395a5..f663a5f 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -420,7 +420,7 @@ int __init pci_xen_init(void)
}
#ifdef CONFIG_PCI_MSI
-void __init xen_msi_init(void)
+static void __init xen_msi_init(void)
{
if (!disable_apic) {
/*
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] xen: Fix a previous prototype warning in xen.c
2020-09-24 14:36 [PATCH -next] xen: Fix a previous prototype warning in xen.c Li Heng
@ 2020-09-28 22:39 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2020-09-28 22:39 UTC (permalink / raw)
To: Li Heng
Cc: konrad.wilk, bhelgaas, tglx, mingo, bp, x86, hpa, xen-devel,
linux-pci, linux-kernel
On Thu, Sep 24, 2020 at 10:36:16PM +0800, Li Heng wrote:
> Fix the warning:
> arch/x86/pci/xen.c:423:13: warning:
> no previous prototype for ‘xen_msi_init’ [-Wmissing-prototypes]
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Li Heng <liheng40@huawei.com>
Applied to pci/misc for v5.10, thanks!
> ---
> arch/x86/pci/xen.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
> index 89395a5..f663a5f 100644
> --- a/arch/x86/pci/xen.c
> +++ b/arch/x86/pci/xen.c
> @@ -420,7 +420,7 @@ int __init pci_xen_init(void)
> }
>
> #ifdef CONFIG_PCI_MSI
> -void __init xen_msi_init(void)
> +static void __init xen_msi_init(void)
> {
> if (!disable_apic) {
> /*
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-28 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 14:36 [PATCH -next] xen: Fix a previous prototype warning in xen.c Li Heng
2020-09-28 22:39 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).