login
Header Space

 
 

[2.6 patch] drivers/scsi/advansys.c section fix

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <matthew@...>, <James.Bottomley@...>
Cc: <linux-scsi@...>, <linux-kernel@...>
Date: Tuesday, December 11, 2007 - 6:23 pm

This patch fixes the following section mismatch with CONFIG_HOTPLUG=n:

<--  snip  -->

...
WARNING: vmlinux.o(.exit.text+0xcf8a): Section mismatch: reference to .init.data:_asc_def_iop_base (between 'advansys_isa_remove' and 'exit_this_scsi_driver')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
e81cac11f9efe882a89708c298fa6268375b0221 
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 9dd3952..38a1ee2 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -13906,7 +13906,7 @@ static int advansys_release(struct Scsi_Host *shost)
 
 #define ASC_IOADR_TABLE_MAX_IX  11
 
-static PortAddr _asc_def_iop_base[ASC_IOADR_TABLE_MAX_IX] __devinitdata = {
+static PortAddr _asc_def_iop_base[ASC_IOADR_TABLE_MAX_IX] = {
 	0x100, 0x0110, 0x120, 0x0130, 0x140, 0x0150, 0x0190,
 	0x0210, 0x0230, 0x0250, 0x0330
 };

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] drivers/scsi/advansys.c section fix, Adrian Bunk, (Tue Dec 11, 6:23 pm)
Re: [2.6 patch] drivers/scsi/advansys.c section fix, Randy Dunlap, (Tue Dec 11, 6:35 pm)
speck-geostationary