diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-06-25 08:48:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:01:16 -0400 |
commit | c836043e708d50bb301479d0db8e0dc77d4f52ca (patch) | |
tree | ca19a611afb7ae60cf3b5f203457898a0827058c /drivers/scsi | |
parent | 673e321cf9a12ecc2d6ce683fa9105f3443c1cbd (diff) |
[PATCH] advansys section fixes
Priority: not critical.
Mark 3 functions __init. Saves a little memory.
This makes these functions' calls to AdvWaitEEPCmd() (which is __init)
be clean (i.e., eliminates text -> init -> text call chain).
Fix multiple section mismatch warnings:
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a22) and 'AdvSet38C0800EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a4e) and 'AdvSet38C0800EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a79) and 'AdvSet38C0800EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7aa2) and 'AdvSet38C0800EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7abb) and 'AdvSet38C0800EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7ae0) and 'AdvSet38C1600EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b0c) and 'AdvSet38C1600EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b37) and 'AdvSet38C1600EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b60) and 'AdvSet38C1600EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b79) and 'AdvSet38C1600EEPConfig'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7b9e) and 'AdvExeScsiQueue'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bca) and 'AdvExeScsiQueue'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bf5) and 'AdvExeScsiQueue'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c1e) and 'AdvExeScsiQueue'
WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c37) and 'AdvExeScsiQueue'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/advansys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 2a419634b256..5ee47555a8af 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c | |||
@@ -17316,7 +17316,7 @@ AdvWaitEEPCmd(AdvPortAddr iop_base) | |||
17316 | /* | 17316 | /* |
17317 | * Write the EEPROM from 'cfg_buf'. | 17317 | * Write the EEPROM from 'cfg_buf'. |
17318 | */ | 17318 | */ |
17319 | void | 17319 | void __init |
17320 | AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) | 17320 | AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) |
17321 | { | 17321 | { |
17322 | ushort *wbuf; | 17322 | ushort *wbuf; |
@@ -17383,7 +17383,7 @@ AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) | |||
17383 | /* | 17383 | /* |
17384 | * Write the EEPROM from 'cfg_buf'. | 17384 | * Write the EEPROM from 'cfg_buf'. |
17385 | */ | 17385 | */ |
17386 | void | 17386 | void __init |
17387 | AdvSet38C0800EEPConfig(AdvPortAddr iop_base, | 17387 | AdvSet38C0800EEPConfig(AdvPortAddr iop_base, |
17388 | ADVEEP_38C0800_CONFIG *cfg_buf) | 17388 | ADVEEP_38C0800_CONFIG *cfg_buf) |
17389 | { | 17389 | { |
@@ -17451,7 +17451,7 @@ AdvSet38C0800EEPConfig(AdvPortAddr iop_base, | |||
17451 | /* | 17451 | /* |
17452 | * Write the EEPROM from 'cfg_buf'. | 17452 | * Write the EEPROM from 'cfg_buf'. |
17453 | */ | 17453 | */ |
17454 | void | 17454 | void __init |
17455 | AdvSet38C1600EEPConfig(AdvPortAddr iop_base, | 17455 | AdvSet38C1600EEPConfig(AdvPortAddr iop_base, |
17456 | ADVEEP_38C1600_CONFIG *cfg_buf) | 17456 | ADVEEP_38C1600_CONFIG *cfg_buf) |
17457 | { | 17457 | { |