EDAC: add __init to i7core_xeon_pci_fixup
Subsystems (4)
PATCH 1/2 EDAC: add __init to i7core_xeon_pci_fixup
It's called only from an __init function and is the only user of pcibios_scan_specific_bus which will be marked as __devinit in the next patch.
--- drivers/edac/i7core_edac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/edac/i7core_edac.c +1 -1
@@ -1141,7 +1141,7 @@ static void i7core_put_all_devices(void)i7core_put_devices (i7core_dev); } -static void i7core_xeon_pci_fixup (int dev_id) +static void __init i7core_xeon_pci_fixup (int dev_id) {struct pci_dev *pdev =NULL ;int i;
Signature · 1 line
1.6.5.3
PATCH 2/2 X86: pci, fix section mismatches
pcibios_scan_specific_bus calls pci_scan_bus_on_node which is __devinit. Mark it __devinit as well. All users are now __init or __devinit.
Remark update_res from __init to __devinit as it is called also from __devinit functions.
--- arch/x86/pci/amd_bus.c | 2 +- arch/x86/pci/legacy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/pci/amd_bus.c +1 -1
@@ -119,7 +119,7 @@ static void __init update_range(struct res_range *range, size_t start, } } -void __init update_res (struct pci_root_info *info,size_t start, +void __devinit update_res (struct pci_root_info *info,size_t start,size_t end,unsigned long flags,int merge) {int i;
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;
Signature · 1 line
1.6.5.3
Re: [PATCH 2/2] X86: pci, fix section mismatches
Quoted 36 lines · On Mon, 30 Nov 2009 21:19:42 +0100 Jiri Slaby <[email protected]> wrote:
pcibios_scan_specific_buscallspci_scan_bus_on_nodewhich is__devinit. Mark it__devinitas well. All users are now__initor__devinit.Remark
update_resfrom__initto__devinitas it is called also from__devinitfunctions.Signed-off-by Jiri Slaby <[email protected]>Cc Aristeu Sergio <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Jesse Barnes <[email protected]>--- arch/x86/pci/amd_bus.c | 2 +- arch/x86/pci/legacy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/x86/pci/amd_bus.c +1
-1@@ -119,7 +119,7 @@ static void __init update_range(struct res_range *range, size_t start, } } -void __init update_res (struct pci_root_info *info,size_t start, +void __devinit update_res (struct pci_root_info *info,size_t start,size_t end,unsigned long flags,int merge) {int i;arch/x86/pci/legacy.c +0
-0
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;
amd_bus.c got refactored, can you respin?
Thanks,
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Quoted 15 lines · On Mon, 30 Nov 2009 21:19:41 +0100 Jiri Slaby <[email protected]> wrote:
It's called only from an
__initfunction and is the only user ofpcibios_scan_specific_buswhich will be marked as__devinitin the next patch.Signed-off-by Jiri Slaby <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>--- drivers/edac/i7core_edac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/edac/i7core_edac.c +0
-0
drivers/edac/i7core_edac.c static void i7core_put_all_devices(void) · line 1147
Quoted 8 lines
drivers/edac/i7core_edac.c +1
-1@@ -1141,7 +1141,7 @@ static void i7core_put_all_devices(void)i7core_put_devices (i7core_dev); } -static void i7core_xeon_pci_fixup (int dev_id) +static void __init i7core_xeon_pci_fixup (int dev_id) {struct pci_dev *pdev =NULL ;int i;
I don't know who handles EDAC patches, but I'm pretty sure it's not me. :) It doesn't apply to my tree anyway, so it probably needs a refresh.
Thanks,
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Quoted 21 lines · Jesse Barnes
Quoted 18 lines · On Mon, 30 Nov 2009 21:19:41 +0100 Jiri Slaby <[email protected]> wrote:
It's called only from an
__initfunction and is the only user ofpcibios_scan_specific_buswhich will be marked as__devinitin the next patch.Signed-off-by Jiri Slaby <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>--- drivers/edac/i7core_edac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/edac/i7core_edac.c +0
-0@@ -1141,7 +1141,7 @@ static void i7core_put_all_devices(void)i7core_put_devices (i7core_dev); }
Quoted 8 lines
drivers/edac/i7core_edac.c static void i7core_put_all_devices(void) · line 1147
Quoted 5 lines
drivers/edac/i7core_edac.c +1
-1-static void i7core_xeon_pci_fixup (int dev_id) +static void __init i7core_xeon_pci_fixup (int dev_id) {struct pci_dev *pdev =NULL ;int i;I don't know who handles EDAC patches, but I'm pretty sure it's not me. :)
Yeah, sorry, it was just I wanted you to know about the function user. The EDAC masters were in CC, I hope.
Quoted 2 lines
It doesn't apply to my tree anyway, so it probably needs a refresh.
I'll resend both patches after rebasing them.
thanks,
Signature · 2 lines
js suse labs
Quoted 31 lines · Jesse Barnes
From: Jesse Barnes <[email protected]>
Subject: Re: [PATCH 1/2] EDAC: add__inittoi7core_xeon_pci_fixup
To: "Jiri Slaby" <[email protected]>
Cc: [email protected], [email protected], "Mauro Carvalho Chehab" <[email protected]>
Date: Friday, December 4, 2009, 4:54 PMQuoted 1 line · On Mon, 30 Nov 2009 21:19:41 +0100 Jiri Slaby <[email protected]> wrote:
It's called only from an
__initfunction and is theonly user
Quoted 1 line
of
pcibios_scan_specific_buswhich will be marked as
__devinitinQuoted 7 lines
the next patch.
Signed-off-by Jiri Slaby <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>---
drivers/edac/i7core_edac.c| 2 +-1 files changed, 1 insertions(+), 1deletions(-)
Review
Quoted 2 lines
(quoted diff) +0
-0
b/drivers/edac/i7core_edac.cdrivers/edac/i7core_edac.c static void
Quoted 4 lines
index 4de5a18..c7fc0d5 100644
drivers/edac/i7core_edac.c +0
-0@@ -1141,7 +1141,7 @@ static void
i7core_put_all_devices(void)Quoted 1 line
i7core_put_devices(i7core_dev);
Quoted 11 lines
Quoted 7 lines
}
drivers/edac/i7core_edac.c +1
-1-static void i7core_xeon_pci_fixup (int dev_id) +static void __init i7core_xeon_pci_fixup (int dev_id){
structpci_dev*pdev = NULL;
int i;I don't know who handles EDAC patches, but I'm pretty sure it's not
me. :)
Maruo has the i7core tree that he is building on for i7 stuff boris from AMD has the amd64 tree
I handle the others and send to Andrew Morton
doug thompson
Quoted 14 lines
It doesn't apply to my tree anyway, so it
probably needs a
refresh.Thanks,
Signature · 7 lines
Jesse Barnes, Intel Open Source Technology Center -- 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/