pci: fix section mismatch on update_res()
PATCH 1/1 pci: fix section mismatch on update_res()
From: Jiri Slaby <[email protected]>
Remark update_res from __init to __devinit as it is called also from __devinit functions.
This patch removes the following warning message:
WARNING: vmlinux.o(.devinit.text+0x774a): Section mismatch in reference from the function pci_root_bus_res() to the function .init.text:update_res()
The function __devinit pci_root_bus_res() references a function __init update_res().
If update_res is only used by pci_root_bus_res then annotate update_res with a matching annotation.
--- arch/x86/pci/bus_numa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/pci/bus_numa.c +1 -1
@@ -51,7 +51,7 @@ void x86_pci_root_bus_res_quirks(struct pci_bus *b) } } -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;
Signature · 1 line
1.6.5.6
Jesse Barnes
AppliedQuoted 30 lines · On Tue, 15 Dec 2009 10:19:50 +0900 Hidetoshi Seto…
From: Jiri Slaby <[email protected]>
Remark
update_resfrom__initto__devinitas it is called also from__devinitfunctions.This patch removes the following warning message:
WARNING:
vmlinux.o(.devinit.text+0x774a): Section mismatch in reference from the functionpci_root_bus_res()to the function .init.text:update_res()
The function__devinitpci_root_bus_res()references a function__initupdate_res().
Ifupdate_resis only used bypci_root_bus_resthen annotateupdate_reswith a matching annotation.Signed-off-by Jiri Slaby <[email protected]>Cc Aristeu Sergio <[email protected]>Cc Jesse Barnes <[email protected]>Signed-off-by Hidetoshi Seto <[email protected]>--- arch/x86/pci/bus_numa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/pci/bus_numa.c +0
-0
arch/x86/pci/bus_numa.c void x86_pci_root_bus_res_quirks(struct pci_bus *b) · line 57
Quoted 8 lines
arch/x86/pci/bus_numa.c +1
-1@@ -51,7 +51,7 @@ void x86_pci_root_bus_res_quirks(struct pci_bus *b) } } -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;
Applied, thanks Hidetoshi-san and Jiri.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center