Messages in this thread | | | Date | Sat, 2 Feb 2008 11:26:06 +0100 | From | Sam Ravnborg <> | Subject | Re: [PATCH] pci: fix section mismatch warnings referring to pci_do_scan_bus |
| |
On Thu, Jan 31, 2008 at 11:10:30PM +0100, Sam Ravnborg wrote: > Fix following warnings: > WARNING: o-x86_64/drivers/pci/built-in.o(.text+0xb054): Section mismatch in reference from the function cpci_configure_slot() to the function .devinit.text:pci_do_scan_bus() > WARNING: o-x86_64/drivers/pci/built-in.o(.text+0x153ab): Section mismatch in reference from the function shpchp_configure_device() to the function .devinit.text:pci_do_scan_bus() > WARNING: o-x86_64/drivers/pci/built-in.o(__ksymtab+0xc0): Section mismatch in reference from the variable __ksymtab_pci_do_scan_bus to the function .devinit.text:pci_do_scan_bus() > > PCI hotplug were the only user of pci_do_scan_bus() > so moving this function to the directory of > PCI Hotplug was a logical way to fix so > we only include this function in the kernel > when the CONFIG_HOTPLUG_PCI is enabled. > > Then the abuse of __devinit could be dropped and > we no longer trigger the above warnings. > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org> > Cc: Greg KH <gregkh@suse.de> > Cc: Adrian Bunk <bunk@kernel.org> > ---
This patch is bogus - I will send an updated version later this weekend.
Sam
| |