Commit 9b323e0f authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] dc395x: fix section references

dc395x scsi driver makes many references to __init functions &
__initdata that should be __devinit & __devinitdata.

Error: ./drivers/scsi/dc395x.o .text refers to 00000000000021ef R_X86_64_PC32     .init.text+0x00000000000000b4
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000220e R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000222e R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000022f4 R_X86_64_PC32     .init.text+0x0000000000000177
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002301 R_X86_64_32S      .init.data
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002307 R_X86_64_32S      .init.data+0x0000000000000004
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000230f R_X86_64_32S      .init.data+0x0000000000000008
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002317 R_X86_64_32S      .init.data+0x000000000000000c
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000231d R_X86_64_32S      .init.data
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000232d R_X86_64_PC32     .init.text+0xfffffffffffffffc
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000237a R_X86_64_PC32     .init.text+0x00000000000000b4
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000238c R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000023ac R_X86_64_PC32     .init.text+0x00000000000000b4
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000023d6 R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000023e6 R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000023fe R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000240b R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002418 R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000242f R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 000000000000243f R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002469 R_X86_64_PC32     .init.text+0x00000000000000b4
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002476 R_X86_64_PC32     .init.text+0x000000000000009c
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002489 R_X86_64_PC32     .init.data+0x0000000000000060
Error: ./drivers/scsi/dc395x.o .text refers to 0000000000002494 R_X86_64_PC32     .init.text+0x0000000000000177
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000024a3 R_X86_64_32S      .init.data+0x0000000000000078
Error: ./drivers/scsi/dc395x.o .text refers to 00000000000024ac R_X86_64_PC32     .init.text+0xfffffffffffffffc
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cfca2f9a
...@@ -488,7 +488,7 @@ struct ParameterData { ...@@ -488,7 +488,7 @@ struct ParameterData {
int def; /* default value */ int def; /* default value */
int safe; /* safe value */ int safe; /* safe value */
}; };
static struct ParameterData __initdata cfg_data[] = { static struct ParameterData __devinitdata cfg_data[] = {
{ /* adapter id */ { /* adapter id */
CFG_PARAM_UNSET, CFG_PARAM_UNSET,
0, 0,
...@@ -573,7 +573,7 @@ MODULE_PARM_DESC(reset_delay, "Reset delay in seconds. Default 1 (0-180)"); ...@@ -573,7 +573,7 @@ MODULE_PARM_DESC(reset_delay, "Reset delay in seconds. Default 1 (0-180)");
* set_safe_settings - if the use_safe_settings option is set then * set_safe_settings - if the use_safe_settings option is set then
* set all values to the safe and slow values. * set all values to the safe and slow values.
**/ **/
static void __init set_safe_settings(void) static void __devinit set_safe_settings(void)
{ {
if (use_safe_settings) if (use_safe_settings)
{ {
...@@ -592,7 +592,7 @@ static void __init set_safe_settings(void) ...@@ -592,7 +592,7 @@ static void __init set_safe_settings(void)
* fix_settings - reset any boot parameters which are out of range * fix_settings - reset any boot parameters which are out of range
* back to the default values. * back to the default values.
**/ **/
static void __init fix_settings(void) static void __devinit fix_settings(void)
{ {
int i; int i;
...@@ -619,7 +619,7 @@ static void __init fix_settings(void) ...@@ -619,7 +619,7 @@ static void __init fix_settings(void)
* Mapping from the eeprom delay index value (index into this array) * Mapping from the eeprom delay index value (index into this array)
* to the the number of actual seconds that the delay should be for. * to the the number of actual seconds that the delay should be for.
*/ */
static char __initdata eeprom_index_to_delay_map[] = static char __devinitdata eeprom_index_to_delay_map[] =
{ 1, 3, 5, 10, 16, 30, 60, 120 }; { 1, 3, 5, 10, 16, 30, 60, 120 };
...@@ -629,7 +629,7 @@ static char __initdata eeprom_index_to_delay_map[] = ...@@ -629,7 +629,7 @@ static char __initdata eeprom_index_to_delay_map[] =
* *
* @eeprom: The eeprom structure in which we find the delay index to map. * @eeprom: The eeprom structure in which we find the delay index to map.
**/ **/
static void __init eeprom_index_to_delay(struct NvRamType *eeprom) static void __devinit eeprom_index_to_delay(struct NvRamType *eeprom)
{ {
eeprom->delay_time = eeprom_index_to_delay_map[eeprom->delay_time]; eeprom->delay_time = eeprom_index_to_delay_map[eeprom->delay_time];
} }
...@@ -642,7 +642,7 @@ static void __init eeprom_index_to_delay(struct NvRamType *eeprom) ...@@ -642,7 +642,7 @@ static void __init eeprom_index_to_delay(struct NvRamType *eeprom)
* *
* @delay: The delay, in seconds, to find the eeprom index for. * @delay: The delay, in seconds, to find the eeprom index for.
**/ **/
static int __init delay_to_eeprom_index(int delay) static int __devinit delay_to_eeprom_index(int delay)
{ {
u8 idx = 0; u8 idx = 0;
while (idx < 7 && eeprom_index_to_delay_map[idx] < delay) while (idx < 7 && eeprom_index_to_delay_map[idx] < delay)
...@@ -658,7 +658,7 @@ static int __init delay_to_eeprom_index(int delay) ...@@ -658,7 +658,7 @@ static int __init delay_to_eeprom_index(int delay)
* *
* @eeprom: The eeprom data to override with command line options. * @eeprom: The eeprom data to override with command line options.
**/ **/
static void __init eeprom_override(struct NvRamType *eeprom) static void __devinit eeprom_override(struct NvRamType *eeprom)
{ {
u8 id; u8 id;
...@@ -3931,7 +3931,7 @@ static void dc395x_slave_destroy(struct scsi_device *scsi_device) ...@@ -3931,7 +3931,7 @@ static void dc395x_slave_destroy(struct scsi_device *scsi_device)
* *
* @io_port: base I/O address * @io_port: base I/O address
**/ **/
static void __init trms1040_wait_30us(unsigned long io_port) static void __devinit trms1040_wait_30us(unsigned long io_port)
{ {
/* ScsiPortStallExecution(30); wait 30 us */ /* ScsiPortStallExecution(30); wait 30 us */
outb(5, io_port + TRM_S1040_GEN_TIMER); outb(5, io_port + TRM_S1040_GEN_TIMER);
...@@ -3948,7 +3948,7 @@ static void __init trms1040_wait_30us(unsigned long io_port) ...@@ -3948,7 +3948,7 @@ static void __init trms1040_wait_30us(unsigned long io_port)
* @cmd: SB + op code (command) to send * @cmd: SB + op code (command) to send
* @addr: address to send * @addr: address to send
**/ **/
static void __init trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) static void __devinit trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr)
{ {
int i; int i;
u8 send_data; u8 send_data;
...@@ -3993,7 +3993,7 @@ static void __init trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) ...@@ -3993,7 +3993,7 @@ static void __init trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr)
* @addr: offset into EEPROM * @addr: offset into EEPROM
* @byte: bytes to write * @byte: bytes to write
**/ **/
static void __init trms1040_set_data(unsigned long io_port, u8 addr, u8 byte) static void __devinit trms1040_set_data(unsigned long io_port, u8 addr, u8 byte)
{ {
int i; int i;
u8 send_data; u8 send_data;
...@@ -4047,7 +4047,7 @@ static void __init trms1040_set_data(unsigned long io_port, u8 addr, u8 byte) ...@@ -4047,7 +4047,7 @@ static void __init trms1040_set_data(unsigned long io_port, u8 addr, u8 byte)
* @eeprom: the data to write * @eeprom: the data to write
* @io_port: the base io port * @io_port: the base io port
**/ **/
static void __init trms1040_write_all(struct NvRamType *eeprom, unsigned long io_port) static void __devinit trms1040_write_all(struct NvRamType *eeprom, unsigned long io_port)
{ {
u8 *b_eeprom = (u8 *)eeprom; u8 *b_eeprom = (u8 *)eeprom;
u8 addr; u8 addr;
...@@ -4087,7 +4087,7 @@ static void __init trms1040_write_all(struct NvRamType *eeprom, unsigned long io ...@@ -4087,7 +4087,7 @@ static void __init trms1040_write_all(struct NvRamType *eeprom, unsigned long io
* *
* Returns the the byte read. * Returns the the byte read.
**/ **/
static u8 __init trms1040_get_data(unsigned long io_port, u8 addr) static u8 __devinit trms1040_get_data(unsigned long io_port, u8 addr)
{ {
int i; int i;
u8 read_byte; u8 read_byte;
...@@ -4125,7 +4125,7 @@ static u8 __init trms1040_get_data(unsigned long io_port, u8 addr) ...@@ -4125,7 +4125,7 @@ static u8 __init trms1040_get_data(unsigned long io_port, u8 addr)
* @eeprom: where to store the data * @eeprom: where to store the data
* @io_port: the base io port * @io_port: the base io port
**/ **/
static void __init trms1040_read_all(struct NvRamType *eeprom, unsigned long io_port) static void __devinit trms1040_read_all(struct NvRamType *eeprom, unsigned long io_port)
{ {
u8 *b_eeprom = (u8 *)eeprom; u8 *b_eeprom = (u8 *)eeprom;
u8 addr; u8 addr;
...@@ -4155,7 +4155,7 @@ static void __init trms1040_read_all(struct NvRamType *eeprom, unsigned long io_ ...@@ -4155,7 +4155,7 @@ static void __init trms1040_read_all(struct NvRamType *eeprom, unsigned long io_
* @eeprom: caller allocated strcuture to read the eeprom data into * @eeprom: caller allocated strcuture to read the eeprom data into
* @io_port: io port to read from * @io_port: io port to read from
**/ **/
static void __init check_eeprom(struct NvRamType *eeprom, unsigned long io_port) static void __devinit check_eeprom(struct NvRamType *eeprom, unsigned long io_port)
{ {
u16 *w_eeprom = (u16 *)eeprom; u16 *w_eeprom = (u16 *)eeprom;
u16 w_addr; u16 w_addr;
...@@ -4225,7 +4225,7 @@ static void __init check_eeprom(struct NvRamType *eeprom, unsigned long io_port) ...@@ -4225,7 +4225,7 @@ static void __init check_eeprom(struct NvRamType *eeprom, unsigned long io_port)
* *
* @eeprom: The eeprom data strucutre to show details for. * @eeprom: The eeprom data strucutre to show details for.
**/ **/
static void __init print_eeprom_settings(struct NvRamType *eeprom) static void __devinit print_eeprom_settings(struct NvRamType *eeprom)
{ {
dprintkl(KERN_INFO, "Used settings: AdapterID=%02i, Speed=%i(%02i.%01iMHz), dev_mode=0x%02x\n", dprintkl(KERN_INFO, "Used settings: AdapterID=%02i, Speed=%i(%02i.%01iMHz), dev_mode=0x%02x\n",
eeprom->scsi_id, eeprom->scsi_id,
...@@ -4254,7 +4254,7 @@ static void adapter_sg_tables_free(struct AdapterCtlBlk *acb) ...@@ -4254,7 +4254,7 @@ static void adapter_sg_tables_free(struct AdapterCtlBlk *acb)
/* /*
* Allocate SG tables; as we have to pci_map them, an SG list (struct SGentry*) * Allocate SG tables; as we have to pci_map them, an SG list (struct SGentry*)
* should never cross a page boundary */ * should never cross a page boundary */
static int __init adapter_sg_tables_alloc(struct AdapterCtlBlk *acb) static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
{ {
const unsigned mem_needed = (DC395x_MAX_SRB_CNT+1) const unsigned mem_needed = (DC395x_MAX_SRB_CNT+1)
*SEGMENTX_LEN; *SEGMENTX_LEN;
...@@ -4300,7 +4300,7 @@ static int __init adapter_sg_tables_alloc(struct AdapterCtlBlk *acb) ...@@ -4300,7 +4300,7 @@ static int __init adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
* *
* @acb: The adapter to print the information for. * @acb: The adapter to print the information for.
**/ **/
static void __init adapter_print_config(struct AdapterCtlBlk *acb) static void __devinit adapter_print_config(struct AdapterCtlBlk *acb)
{ {
u8 bval; u8 bval;
...@@ -4344,7 +4344,7 @@ static void __init adapter_print_config(struct AdapterCtlBlk *acb) ...@@ -4344,7 +4344,7 @@ static void __init adapter_print_config(struct AdapterCtlBlk *acb)
* *
* @acb: The adapter to initialize. * @acb: The adapter to initialize.
**/ **/
static void __init adapter_init_params(struct AdapterCtlBlk *acb) static void __devinit adapter_init_params(struct AdapterCtlBlk *acb)
{ {
struct NvRamType *eeprom = &acb->eeprom; struct NvRamType *eeprom = &acb->eeprom;
int i; int i;
...@@ -4406,7 +4406,7 @@ static void __init adapter_init_params(struct AdapterCtlBlk *acb) ...@@ -4406,7 +4406,7 @@ static void __init adapter_init_params(struct AdapterCtlBlk *acb)
* *
* @host: The scsi host instance to fill in the values for. * @host: The scsi host instance to fill in the values for.
**/ **/
static void __init adapter_init_scsi_host(struct Scsi_Host *host) static void __devinit adapter_init_scsi_host(struct Scsi_Host *host)
{ {
struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata;
struct NvRamType *eeprom = &acb->eeprom; struct NvRamType *eeprom = &acb->eeprom;
...@@ -4447,7 +4447,7 @@ static void __init adapter_init_scsi_host(struct Scsi_Host *host) ...@@ -4447,7 +4447,7 @@ static void __init adapter_init_scsi_host(struct Scsi_Host *host)
* *
* @acb: The adapter which we are to init. * @acb: The adapter which we are to init.
**/ **/
static void __init adapter_init_chip(struct AdapterCtlBlk *acb) static void __devinit adapter_init_chip(struct AdapterCtlBlk *acb)
{ {
struct NvRamType *eeprom = &acb->eeprom; struct NvRamType *eeprom = &acb->eeprom;
...@@ -4500,7 +4500,7 @@ static void __init adapter_init_chip(struct AdapterCtlBlk *acb) ...@@ -4500,7 +4500,7 @@ static void __init adapter_init_chip(struct AdapterCtlBlk *acb)
* Returns 0 if the initialization succeeds, any other value on * Returns 0 if the initialization succeeds, any other value on
* failure. * failure.
**/ **/
static int __init adapter_init(struct AdapterCtlBlk *acb, static int __devinit adapter_init(struct AdapterCtlBlk *acb,
unsigned long io_port, u32 io_port_len, unsigned int irq) unsigned long io_port, u32 io_port_len, unsigned int irq)
{ {
if (!request_region(io_port, io_port_len, DC395X_NAME)) { if (!request_region(io_port, io_port_len, DC395X_NAME)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment