scsi/qla2xxx/qla_os.c section fix
Subsystems (2)
PATCH 1/1 scsi/qla2xxx/qla_os.c section fix
qla2x00_remove_one() mustn't be __devexit since it's called from qla2xxx_pci_error_detected().
This patch fixes the following section mismatch:
<-- snip -->
...
WARNING: vmlinux.o(.text+0x2a4462): Section mismatch: reference to .exit.text:qla2x00_remove_one (between 'qla2xxx_pci_error_detected' and 'qla2x00_stop_timer')
...
<-- snip -->
---
drivers/scsi/qla2xxx/qla_os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
764ebbed3c09f765963c20a3a326cf651685a81a
drivers/scsi/qla2xxx/qla_os.c +2 -2
@@ -1831,7 +1831,7 @@ probe_out:return ret; } -static void __devexit +static void qla2x00_remove_one (struct pci_dev *pdev) {scsi_qla_host_t *ha;
@@ -2965,7 +2965,7 @@ static struct pci_driver qla2xxx_pci_driver = { }, .id_table = qla2xxx_pci_tbl, .probe = qla2x00_probe_one, - .remove = __devexit_p(qla2x00_remove_one), + .remove = qla2x00_remove_one, .err_handler = &qla2xxx_err_handler, };
Quoted 7 lines · Adrian Bunk
qla2x00_remove_one()mustn't be__devexitsince it's called fromqla2xxx_pci_error_detected().This patch fixes the following section mismatch:
<-- snip -->
Quoted 7 lines
...
WARNING:vmlinux.o(.text+0x2a4462): Section mismatch: reference to .exit.text:qla2x00_remove_one (between 'qla2xxx_pci_error_detected' and 'qla2x00_stop_timer')
...<-- snip -->
Signed-off-by Adrian Bunk <[email protected]>
ACK.