Skip to contentSkip to conversation

drivers/scsi/advansys.c section fix

PATCH In review Adrian Bunk 2 participants 2 messages Dec 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/scsi/advansys.c section fix

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 -->

---
e81cac11f9efe882a89708c298fa6268375b0221

drivers/scsi/advansys.c +1 -1
index 9dd3952..38a1ee2 100644
@@ -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
 };
#1 lore raw
Quoted 19 lines · On Tue, 11 Dec 2007 23:23:53 +0100 Adrian Bunk wrote:

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 -->

---
e81cac11f9efe882a89708c298fa6268375b0221

drivers/scsi/advansys.c +0 -0
index 9dd3952..38a1ee2 100644

drivers/scsi/advansys.c static int advansys_release(struct Scsi_Host *shost)

Quoted 10 lines
drivers/scsi/advansys.c +1 -2
@@ -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
 };
 
-

http://marc.info/?l=linux-scsi&m=119368247502255

Acked-by me.

---
~Randy
Features and documentation: http://lwn.net/Articles/260136/