scsi: qla2xxx: fix section mismatch in linux-next
Subsystems (2)
PATCH 1/1 scsi: qla2xxx: fix section mismatch in linux-next
qla_tgt_exit() is annotated __exit , but called in qla2x00_module_init().
Signed-off-by Gerard Snitselaar <[email protected]>
--- drivers/scsi/qla2xxx/qla_target.c | 2 +- drivers/scsi/qla2xxx/qla_target.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_target.c +1 -1
@@ -4730,7 +4730,7 @@ out:return ret; } -void __exit qla_tgt_exit(void) +void qla_tgt_exit (void ) {destroy_workqueue (qla_tgt_wq);mempool_destroy (qla_tgt_mgmt_cmd_mempool);
drivers/scsi/qla2xxx/qla_target.h +1 -1
@@ -934,7 +934,7 @@ extern void qla_tgt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *);extern void qla_tgt_set_mode (struct scsi_qla_host *ha);extern void qla_tgt_clear_mode (struct scsi_qla_host *ha);extern int __init qla_tgt_init (void ); -extern void __exit qla_tgt_exit(void); +extern void qla_tgt_exit (void );static inline bool qla_tgt_mode_enabled (struct scsi_qla_host *ha) {
Signature · 1 line
1.7.7.6
Quoted 9 lines · Gerard Snitselaar
qla_tgt_exit()is annotated__exit, but called inqla2x00_module_init().Signed-off-by Gerard Snitselaar <[email protected]>--- drivers/scsi/qla2xxx/qla_target.c | 2 +- drivers/scsi/qla2xxx/qla_target.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Hi Gerard,
Quoted 18 lines
drivers/scsi/qla2xxx/qla_target.c +1
-1@@ -4730,7 +4730,7 @@ out:return ret; } -void __exit qla_tgt_exit(void) +void qla_tgt_exit (void ) {destroy_workqueue (qla_tgt_wq);mempool_destroy (qla_tgt_mgmt_cmd_mempool);drivers/scsi/qla2xxx/qla_target.h +0
-0
drivers/scsi/qla2xxx/qla_target.h extern void qla_tgt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *); · line 940
Quoted 8 lines
drivers/scsi/qla2xxx/qla_target.h +1
-1@@ -934,7 +934,7 @@ extern void qla_tgt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *);extern void qla_tgt_set_mode (struct scsi_qla_host *ha);extern void qla_tgt_clear_mode (struct scsi_qla_host *ha);extern int __init qla_tgt_init (void ); -extern void __exit qla_tgt_exit(void); +extern void qla_tgt_exit (void );static inline bool qla_tgt_mode_enabled (struct scsi_qla_host *ha) {
This looks fine. Applied to lio-core, and will get this fixed up in target-pending/for-next-merge shortly.
Thanks for your patch!
--nab