diff mbox

pci_eisa: fix section mismatch warning

Message ID 20110530200557.26c84d70.randy.dunlap@oracle.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Randy Dunlap May 31, 2011, 3:05 a.m. UTC
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix section mismatch warning in pci_eisa.c:

WARNING: drivers/eisa/built-in.o(.data+0x90): Section mismatch in reference from the variable pci_eisa_driver to the function .init.text:pci_eisa_init()
The variable pci_eisa_driver references
the function __init pci_eisa_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Reported-by: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Adrian Bunk <bunk@stusta.de>
---
 drivers/eisa/pci_eisa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- lnx26today.orig/drivers/eisa/pci_eisa.c
+++ lnx26today/drivers/eisa/pci_eisa.c
@@ -51,7 +51,7 @@  static struct pci_device_id pci_eisa_pci
 	{ 0, }
 };
 
-static struct pci_driver pci_eisa_driver = {
+static struct pci_driver pci_eisa_driver __refdata = {
 	.name		= "pci_eisa",
 	.id_table	= pci_eisa_pci_tbl,
 	.probe		= pci_eisa_init,