NCR_D700 section fix
PATCH 18/19 NCR_D700 section fix
From: Andrew Morton <[email protected]>
WARNING: drivers/scsi/NCR_D700.o - Section mismatch: reference to .init.data:id_array from .text after 'NCR_D700_probe' (at offset 0x2c1)
Not the right fix, really. But the right fix isn't really feasible because `struct mca_driver' contains pointers to probe functions (which want to be __init) as well as containing things which need to live after initcall() time.
Seems to be a general problem with struct device_driver.
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/NCR_D700.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/NCR_D700.c renamed from drivers/scsi/NCR_D700.c~NCR_D700-section-fix +1 -1
@@ -114,7 +114,7 @@ MODULE_DESCRIPTION("NCR Dual700 SCSI DriMODULE_LICENSE ("GPL" );module_param (NCR_D700 , charp,0 ); -static __u8 __initdata id_array[2 *(MCA_MAX_SLOT_NR +1 )] = +static __u8 id_array[2 *(MCA_MAX_SLOT_NR +1 )] = { [0 ...2 *(MCA_MAX_SLOT_NR +1 )-1 ] =7 };#ifdef MODULE
_