Skip to contentSkip to conversation

X86: pci, fix section mismatch

PATCH In review Jiri Slaby 3 participants 3 messages Jan 29, 2010 – Feb 8, 2010

Subsystems (2)
lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 X86: pci, fix section mismatch

pcibios_scan_specific_bus calls pci_scan_bus_on_node which is __devinit. Mark pcibios_scan_specific_bus __devinit as well since all users are now __init or __devinit.

---
 arch/x86/pci/legacy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/pci/legacy.c +1 -1
index a8194c8..8cf7835 100644
@@ -39,7 +39,7 @@ static int __init pci_legacy_init(void)
 	return 0;
 }
 
-void pcibios_scan_specific_bus(int busn)
+void __devinit pcibios_scan_specific_bus(int busn)
 {
 	int devfn;
 	long node;
Signature · 1 line
1.6.6.1
#1 lore raw
Quoted 17 lines · On Fri, 29 Jan 2010 10:22:36 +0100 Jiri Slaby <[email protected]> wrote:

pcibios_scan_specific_bus calls pci_scan_bus_on_node which is __devinit. Mark pcibios_scan_specific_bus __devinit as well since all users are now __init or __devinit.

---
 arch/x86/pci/legacy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/pci/legacy.c +0 -0
index a8194c8..8cf7835 100644

arch/x86/pci/legacy.c static int __init pci_legacy_init(void) · line 45

Quoted 8 lines
arch/x86/pci/legacy.c +1 -1
@@ -39,7 +39,7 @@ static int __init pci_legacy_init(void)
 	return 0;
 }
 
-void pcibios_scan_specific_bus(int busn)
+void __devinit pcibios_scan_specific_bus(int busn)
 {
 	int devfn;
 	long node;

Does this apply to some x86 tree that I can't see? Neither my tree nor the -tip tree has this function and I don't see it in the history.

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
#2 lore raw
Quoted 23 lines · Jesse Barnes
Quoted 20 lines · On Fri, 29 Jan 2010 10:22:36 +0100 Jiri Slaby <[email protected]> wrote:

pcibios_scan_specific_bus calls pci_scan_bus_on_node which is __devinit. Mark pcibios_scan_specific_bus __devinit as well since all users are now __init or __devinit.

---
 arch/x86/pci/legacy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/pci/legacy.c +0 -0
index a8194c8..8cf7835 100644
@@ -39,7 +39,7 @@ static int __init pci_legacy_init(void)
 	return 0;
 }
 
Quoted 8 lines

arch/x86/pci/legacy.c static int __init pci_legacy_init(void) · line 45

Quoted 5 lines
arch/x86/pci/legacy.c +1 -1
-void pcibios_scan_specific_bus(int busn)
+void __devinit pcibios_scan_specific_bus(int busn)
 {
 	int devfn;
 	long node;

Does this apply to some x86 tree that I can't see? Neither my tree nor the -tip tree has this function and I don't see it in the history.

Ah, this seems to come from
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/i7core.git#linux_next

as SHA:
a120a84ebbc4cbc9c1addddd2b491e3683b842a6

I'll resend to Mauro.