diff options
author | Joern Engel <joern@logfs.org> | 2014-09-16 16:23:15 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-10-01 17:39:18 -0400 |
commit | 55a9066fffd2f533e7ed434b072469ef09d6c476 (patch) | |
tree | c003786244317221e5908106fd38f7a08fc8f3cb | |
parent | c57010420654aca179c500f61e86315a337244ca (diff) |
qla_target: make some global functions static
Also removes the declarations from the header - including two
declarations without function definitions or callers.
Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 10 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.h | 10 |
2 files changed, 5 insertions, 15 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 577058e4537f..c22b1c141fec 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c | |||
@@ -101,6 +101,7 @@ static void qlt_send_term_exchange(struct scsi_qla_host *ha, struct qla_tgt_cmd | |||
101 | *cmd, struct atio_from_isp *atio, int ha_locked); | 101 | *cmd, struct atio_from_isp *atio, int ha_locked); |
102 | static void qlt_reject_free_srr_imm(struct scsi_qla_host *ha, | 102 | static void qlt_reject_free_srr_imm(struct scsi_qla_host *ha, |
103 | struct qla_tgt_srr_imm *imm, int ha_lock); | 103 | struct qla_tgt_srr_imm *imm, int ha_lock); |
104 | static void qlt_disable_vha(struct scsi_qla_host *vha); | ||
104 | /* | 105 | /* |
105 | * Global Variables | 106 | * Global Variables |
106 | */ | 107 | */ |
@@ -178,7 +179,7 @@ struct scsi_qla_host *qlt_find_host_by_vp_idx(struct scsi_qla_host *vha, | |||
178 | return NULL; | 179 | return NULL; |
179 | } | 180 | } |
180 | 181 | ||
181 | void qlt_24xx_atio_pkt_all_vps(struct scsi_qla_host *vha, | 182 | static void qlt_24xx_atio_pkt_all_vps(struct scsi_qla_host *vha, |
182 | struct atio_from_isp *atio) | 183 | struct atio_from_isp *atio) |
183 | { | 184 | { |
184 | ql_dbg(ql_dbg_tgt, vha, 0xe072, | 185 | ql_dbg(ql_dbg_tgt, vha, 0xe072, |
@@ -5024,7 +5025,7 @@ void qlt_lport_deregister(struct scsi_qla_host *vha) | |||
5024 | EXPORT_SYMBOL(qlt_lport_deregister); | 5025 | EXPORT_SYMBOL(qlt_lport_deregister); |
5025 | 5026 | ||
5026 | /* Must be called under HW lock */ | 5027 | /* Must be called under HW lock */ |
5027 | void qlt_set_mode(struct scsi_qla_host *vha) | 5028 | static void qlt_set_mode(struct scsi_qla_host *vha) |
5028 | { | 5029 | { |
5029 | struct qla_hw_data *ha = vha->hw; | 5030 | struct qla_hw_data *ha = vha->hw; |
5030 | 5031 | ||
@@ -5045,7 +5046,7 @@ void qlt_set_mode(struct scsi_qla_host *vha) | |||
5045 | } | 5046 | } |
5046 | 5047 | ||
5047 | /* Must be called under HW lock */ | 5048 | /* Must be called under HW lock */ |
5048 | void qlt_clear_mode(struct scsi_qla_host *vha) | 5049 | static void qlt_clear_mode(struct scsi_qla_host *vha) |
5049 | { | 5050 | { |
5050 | struct qla_hw_data *ha = vha->hw; | 5051 | struct qla_hw_data *ha = vha->hw; |
5051 | 5052 | ||
@@ -5109,8 +5110,7 @@ EXPORT_SYMBOL(qlt_enable_vha); | |||
5109 | * | 5110 | * |
5110 | * Disable Target Mode and reset the adapter | 5111 | * Disable Target Mode and reset the adapter |
5111 | */ | 5112 | */ |
5112 | void | 5113 | static void qlt_disable_vha(struct scsi_qla_host *vha) |
5113 | qlt_disable_vha(struct scsi_qla_host *vha) | ||
5114 | { | 5114 | { |
5115 | struct qla_hw_data *ha = vha->hw; | 5115 | struct qla_hw_data *ha = vha->hw; |
5116 | struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; | 5116 | struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; |
diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index d1d24fb0160a..bc1aee78d934 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h | |||
@@ -1003,10 +1003,6 @@ struct qla_tgt_srr_ctio { | |||
1003 | 1003 | ||
1004 | 1004 | ||
1005 | extern struct qla_tgt_data qla_target; | 1005 | extern struct qla_tgt_data qla_target; |
1006 | /* | ||
1007 | * Internal function prototypes | ||
1008 | */ | ||
1009 | void qlt_disable_vha(struct scsi_qla_host *); | ||
1010 | 1006 | ||
1011 | /* | 1007 | /* |
1012 | * Function prototypes for qla_target.c logic used by qla2xxx LLD code. | 1008 | * Function prototypes for qla_target.c logic used by qla2xxx LLD code. |
@@ -1019,8 +1015,6 @@ extern void qlt_lport_deregister(struct scsi_qla_host *); | |||
1019 | extern void qlt_unreg_sess(struct qla_tgt_sess *); | 1015 | extern void qlt_unreg_sess(struct qla_tgt_sess *); |
1020 | extern void qlt_fc_port_added(struct scsi_qla_host *, fc_port_t *); | 1016 | extern void qlt_fc_port_added(struct scsi_qla_host *, fc_port_t *); |
1021 | extern void qlt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *); | 1017 | extern void qlt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *); |
1022 | extern void qlt_set_mode(struct scsi_qla_host *ha); | ||
1023 | extern void qlt_clear_mode(struct scsi_qla_host *ha); | ||
1024 | extern int __init qlt_init(void); | 1018 | extern int __init qlt_init(void); |
1025 | extern void qlt_exit(void); | 1019 | extern void qlt_exit(void); |
1026 | extern void qlt_update_vp_map(struct scsi_qla_host *, int); | 1020 | extern void qlt_update_vp_map(struct scsi_qla_host *, int); |
@@ -1053,13 +1047,9 @@ static inline void qla_reverse_ini_mode(struct scsi_qla_host *ha) | |||
1053 | /* | 1047 | /* |
1054 | * Exported symbols from qla_target.c LLD logic used by qla2xxx code.. | 1048 | * Exported symbols from qla_target.c LLD logic used by qla2xxx code.. |
1055 | */ | 1049 | */ |
1056 | extern void qlt_24xx_atio_pkt_all_vps(struct scsi_qla_host *, | ||
1057 | struct atio_from_isp *); | ||
1058 | extern void qlt_response_pkt_all_vps(struct scsi_qla_host *, response_t *); | 1050 | extern void qlt_response_pkt_all_vps(struct scsi_qla_host *, response_t *); |
1059 | extern int qlt_rdy_to_xfer(struct qla_tgt_cmd *); | 1051 | extern int qlt_rdy_to_xfer(struct qla_tgt_cmd *); |
1060 | extern int qlt_xmit_response(struct qla_tgt_cmd *, int, uint8_t); | 1052 | extern int qlt_xmit_response(struct qla_tgt_cmd *, int, uint8_t); |
1061 | extern int qlt_rdy_to_xfer_dif(struct qla_tgt_cmd *); | ||
1062 | extern int qlt_xmit_response_dif(struct qla_tgt_cmd *, int, uint8_t); | ||
1063 | extern void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *); | 1053 | extern void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *); |
1064 | extern void qlt_free_mcmd(struct qla_tgt_mgmt_cmd *); | 1054 | extern void qlt_free_mcmd(struct qla_tgt_mgmt_cmd *); |
1065 | extern void qlt_free_cmd(struct qla_tgt_cmd *cmd); | 1055 | extern void qlt_free_cmd(struct qla_tgt_cmd *cmd); |