Skip to contentSkip to conversation

x86/pci/legacy: make pci_subsys_init static

PATCH Applied Alexander Kuleshov 2 participants 2 messages Oct 8, 2015 – Oct 9, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/pci/legacy: make pci_subsys_init static

The pci_subsys_init() is a subsys_initcall that can be declared static.

---
 arch/x86/pci/legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/pci/legacy.c +1 -1
index 5b662c0..ea6f380 100644
@@ -54,7 +54,7 @@ void pcibios_scan_specific_bus(int busn)
 }
 EXPORT_SYMBOL_GPL(pcibios_scan_specific_bus);
 
-int __init pci_subsys_init(void)
+static int __init pci_subsys_init(void)
 {
 	/*
 	 * The init function returns an non zero value when
Signature · 1 line
2.6.0
#1 lore raw
Quoted 4 lines · Alexander Kuleshov

The pci_subsys_init() is a subsys_initcall that can be declared static.

Applied to pci/misc for v4.4, thanks, Alexander!

I tweaked the subject to match the file's history.

Quoted 25 lines
---
 arch/x86/pci/legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/pci/legacy.c +1 -1
index 5b662c0..ea6f380 100644
@@ -54,7 +54,7 @@ void pcibios_scan_specific_bus(int busn)
 }
 EXPORT_SYMBOL_GPL(pcibios_scan_specific_bus);
 
-int __init pci_subsys_init(void)
+static int __init pci_subsys_init(void)
 {
 	/*
 	 * The init function returns an non zero value when
Signature · 7 lines
2.6.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/