mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
pci: fix section mismatch warning
drivers/pci/search.c caused following section mismatch warning (if compiled with CONFIG_HOTPLUG=n): WARNING: drivers/pci/built-in.o - Section mismatch: reference to .init.text: from .text.pci_find_bus after 'pci_find_bus' (at offset 0x24) This was due to pci_find_bus() calling a function marked __devinit. Fix was to remove the __devinit from the offending function. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c1996c2778
commit
128bf5cb54
@ -15,7 +15,7 @@
|
||||
|
||||
DECLARE_RWSEM(pci_bus_sem);
|
||||
|
||||
static struct pci_bus * __devinit
|
||||
static struct pci_bus *
|
||||
pci_do_find_bus(struct pci_bus* bus, unsigned char busnr)
|
||||
{
|
||||
struct pci_bus* child;
|
||||
|
Loading…
Reference in New Issue
Block a user