Skip to content

Commit

Permalink
PCI: aer: fix section mismatch warning
Browse files Browse the repository at this point in the history
Fix following section mismatch warning (when compiled with CONFIG_HOTPLUG=n):
WARNING: drivers/pci/built-in.o - Section mismatch: reference to .init.text:aer_probe from .data between 'aerdrv' (at offset 0x1608) and 'aer_error_handlers'

Warning was fixed by renaming aerdrv to aerdriver so we pass the whitelist.

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 3603a6a commit c1996c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/pci/pcie/aer/aerdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static struct pci_error_handlers aer_error_handlers = {
.resume = aer_error_resume,
};

static struct pcie_port_service_driver aerdrv = {
static struct pcie_port_service_driver aerdriver = {
.name = "aer",
.id_table = &aer_id[0],

Expand Down Expand Up @@ -328,7 +328,7 @@ static void aer_error_resume(struct pci_dev *dev)
**/
static int __init aer_service_init(void)
{
return pcie_port_service_register(&aerdrv);
return pcie_port_service_register(&aerdriver);
}

/**
Expand All @@ -338,7 +338,7 @@ static int __init aer_service_init(void)
**/
static void __exit aer_service_exit(void)
{
pcie_port_service_unregister(&aerdrv);
pcie_port_service_unregister(&aerdriver);
}

module_init(aer_service_init);
Expand Down

0 comments on commit c1996c2

Please sign in to comment.