提交 4c993f76 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

scsi/qla2xxx/qla_os.c section fix

WARNING: vmlinux.o(.text+0x2a4462): Section mismatch: reference to .exit.text:qla2x00_remove_one (between 'qla2xxx_pci_error_detected' and 'qla2x00_stop_timer')

qla2x00_remove_one() mustn't be __devexit since it's called from
qla2xxx_pci_error_detected().
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Acked-by: NSeokmann Ju <seokmann.ju@qlogic.com>
Acked-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: NSam Ravnborg <sam@ravnborg.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9f31c05e
...@@ -1831,7 +1831,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -1831,7 +1831,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
return ret; return ret;
} }
static void __devexit static void
qla2x00_remove_one(struct pci_dev *pdev) qla2x00_remove_one(struct pci_dev *pdev)
{ {
scsi_qla_host_t *ha; scsi_qla_host_t *ha;
...@@ -2965,7 +2965,7 @@ static struct pci_driver qla2xxx_pci_driver = { ...@@ -2965,7 +2965,7 @@ static struct pci_driver qla2xxx_pci_driver = {
}, },
.id_table = qla2xxx_pci_tbl, .id_table = qla2xxx_pci_tbl,
.probe = qla2x00_probe_one, .probe = qla2x00_probe_one,
.remove = __devexit_p(qla2x00_remove_one), .remove = qla2x00_remove_one,
.err_handler = &qla2xxx_err_handler, .err_handler = &qla2xxx_err_handler,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册