[PATCH] scsi: qla2xxx: fix section mismatch in linux-next

From: Gerard Snitselaar
Date: Thu Mar 15 2012 - 17:40:46 EST


qla_tgt_exit() is annotated __exit , but called in
qla2x00_module_init().

Signed-off-by: Gerard Snitselaar <dev@xxxxxxxxxxxxxx>
---
drivers/scsi/qla2xxx/qla_target.c | 2 +-
drivers/scsi/qla2xxx/qla_target.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index 6d6f1cf..699d16e 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -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);
diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h
index db6b399..b9d0aa1 100644
--- a/drivers/scsi/qla2xxx/qla_target.h
+++ b/drivers/scsi/qla2xxx/qla_target.h
@@ -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)
{
--
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/