Skip to content

Commit

Permalink
pci: fix section mismatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and Greg Kroah-Hartman committed Mar 9, 2007
1 parent c1996c2 commit 128bf5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 128bf5c

Please sign in to comment.