Skip to contentSkip to conversation

scsi: fix sim710 section mismatch warnings

PATCH New Randy Dunlap 1 participant 1 message Jun 21, 2011 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: fix sim710 section mismatch warnings

From: Randy Dunlap <[email protected]>

Fix section mismatch warnings:

WARNING: drivers/scsi/sim710.o(.data+0x24): Section mismatch in reference from the variable sim710_mca_driver to the function .init.text:sim710_mca_probe()
WARNING: drivers/scsi/sim710.o(.data+0x60): Section mismatch in reference from the variable sim710_eisa_driver to the function .init.text:sim710_eisa_probe()

although it does now generate this unwanted warning:
drivers/scsi/sim710.c:268: warning: 'noinline' attribute ignored drivers/scsi/sim710.c:328: warning: 'noinline' attribute ignored

Am I using the wrong marker here?

---
 drivers/scsi/sim710.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/sim710.c +2 -2
@@ -265,7 +265,7 @@ sim710_mca_probe(struct device *dev)
 				   0, id_array[slot]);
 }
 
-static struct mca_driver sim710_mca_driver = {
+static struct mca_driver sim710_mca_driver __init_refok = {
 	.id_table		= sim710_mca_id_table,
 	.driver = {
 		.name		= "sim710",
@@ -325,7 +325,7 @@ sim710_eisa_probe(struct device *dev)
 				   differential, scsi_id);
 }
 
-static struct eisa_driver sim710_eisa_driver = {
+static struct eisa_driver sim710_eisa_driver __init_refok = {
 	.id_table		= sim710_eisa_ids,
 	.driver = {
 		.name		= "sim710",

---