Skip to contentSkip to conversation

xen: Fix a previous prototype warning in xen.c

PATCH Applied Li Heng 2 participants 2 messages Sep 24, 2020 – Sep 28, 2020

Subsystems (3)
lore
Share & tools
lore

Li Heng

author
#0 lore raw

PATCH 1/1 xen: Fix a previous prototype warning in xen.c

Fix the warning:
arch/x86/pci/xen.c:423:13: warning:
no previous prototype for ‘xen_msi_init’ [-Wmissing-prototypes]

---
 arch/x86/pci/xen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/pci/xen.c +1 -1
index 89395a5..f663a5f 100644
@@ -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

#1 lore raw
Quoted 6 lines · Li Heng

Fix the warning:
arch/x86/pci/xen.c:423:13: warning:
no previous prototype for ‘xen_msi_init’ [-Wmissing-prototypes]

Applied to pci/misc for v5.10, thanks!

Quoted 20 lines
---
 arch/x86/pci/xen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/pci/xen.c +1 -2
index 89395a5..f663a5f 100644
@@ -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