aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2014-09-16 16:23:15 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2014-10-01 17:39:18 -0400
commit55a9066fffd2f533e7ed434b072469ef09d6c476 (patch)
treec003786244317221e5908106fd38f7a08fc8f3cb
parentc57010420654aca179c500f61e86315a337244ca (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.c10
-rw-r--r--drivers/scsi/qla2xxx/qla_target.h10
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);
102static void qlt_reject_free_srr_imm(struct scsi_qla_host *ha, 102static 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);
104static 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
181void qlt_24xx_atio_pkt_all_vps(struct scsi_qla_host *vha, 182static 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)
5024EXPORT_SYMBOL(qlt_lport_deregister); 5025EXPORT_SYMBOL(qlt_lport_deregister);
5025 5026
5026/* Must be called under HW lock */ 5027/* Must be called under HW lock */
5027void qlt_set_mode(struct scsi_qla_host *vha) 5028static 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 */
5048void qlt_clear_mode(struct scsi_qla_host *vha) 5049static 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 */
5112void 5113static void qlt_disable_vha(struct scsi_qla_host *vha)
5113qlt_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
1005extern struct qla_tgt_data qla_target; 1005extern struct qla_tgt_data qla_target;
1006/*
1007 * Internal function prototypes
1008 */
1009void 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 *);
1019extern void qlt_unreg_sess(struct qla_tgt_sess *); 1015extern void qlt_unreg_sess(struct qla_tgt_sess *);
1020extern void qlt_fc_port_added(struct scsi_qla_host *, fc_port_t *); 1016extern void qlt_fc_port_added(struct scsi_qla_host *, fc_port_t *);
1021extern void qlt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *); 1017extern void qlt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *);
1022extern void qlt_set_mode(struct scsi_qla_host *ha);
1023extern void qlt_clear_mode(struct scsi_qla_host *ha);
1024extern int __init qlt_init(void); 1018extern int __init qlt_init(void);
1025extern void qlt_exit(void); 1019extern void qlt_exit(void);
1026extern void qlt_update_vp_map(struct scsi_qla_host *, int); 1020extern 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 */
1056extern void qlt_24xx_atio_pkt_all_vps(struct scsi_qla_host *,
1057 struct atio_from_isp *);
1058extern void qlt_response_pkt_all_vps(struct scsi_qla_host *, response_t *); 1050extern void qlt_response_pkt_all_vps(struct scsi_qla_host *, response_t *);
1059extern int qlt_rdy_to_xfer(struct qla_tgt_cmd *); 1051extern int qlt_rdy_to_xfer(struct qla_tgt_cmd *);
1060extern int qlt_xmit_response(struct qla_tgt_cmd *, int, uint8_t); 1052extern int qlt_xmit_response(struct qla_tgt_cmd *, int, uint8_t);
1061extern int qlt_rdy_to_xfer_dif(struct qla_tgt_cmd *);
1062extern int qlt_xmit_response_dif(struct qla_tgt_cmd *, int, uint8_t);
1063extern void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *); 1053extern void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *);
1064extern void qlt_free_mcmd(struct qla_tgt_mgmt_cmd *); 1054extern void qlt_free_mcmd(struct qla_tgt_mgmt_cmd *);
1065extern void qlt_free_cmd(struct qla_tgt_cmd *cmd); 1055extern void qlt_free_cmd(struct qla_tgt_cmd *cmd);