mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
qla2x00t-32gbit, target: Fix W=1 warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -48,7 +48,7 @@ extern struct mutex qla_tgt_mutex;
|
||||
extern struct list_head qla_tgt_glist;
|
||||
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
qlt_add_vtarget(u64 port_name, u64 node_name, u64 parent_host)
|
||||
{
|
||||
struct Scsi_Host *shost = NULL;
|
||||
@@ -89,7 +89,7 @@ qlt_add_vtarget(u64 port_name, u64 node_name, u64 parent_host)
|
||||
}
|
||||
EXPORT_SYMBOL(qlt_add_vtarget);
|
||||
|
||||
size_t qlt_del_vtarget(u64 port_name)
|
||||
static size_t qlt_del_vtarget(u64 port_name)
|
||||
{
|
||||
struct qla_tgt *tgt, *t;
|
||||
scsi_qla_host_t *vha = NULL;
|
||||
|
||||
@@ -233,7 +233,7 @@ struct cmd_state_name {
|
||||
{QLA_TGT_STATE_PROCESSED, "Processed"},
|
||||
};
|
||||
|
||||
char* cmdstate_to_str(uint8_t state)
|
||||
static char *cmdstate_to_str(uint8_t state)
|
||||
{
|
||||
int i;
|
||||
struct cmd_state_name *e;
|
||||
@@ -441,7 +441,7 @@ static void sqa_qla2xxx_rel_cmd(struct qla_tgt_cmd *cmd)
|
||||
percpu_ida_free(&sqa_tgt->tgt_tag_pool, cmd->se_cmd.map_tag);
|
||||
}
|
||||
|
||||
struct qla_tgt_cmd *sqa_qla2xxx_get_cmd(struct fc_port *sess)
|
||||
static struct qla_tgt_cmd *sqa_qla2xxx_get_cmd(struct fc_port *sess)
|
||||
{
|
||||
struct sqa_scst_tgt *sqa_tgt =
|
||||
(struct sqa_scst_tgt*)sess->vha->vha_tgt.target_lport_ptr;
|
||||
|
||||
@@ -4424,7 +4424,7 @@ static int qlt_issue_task_mgmt(struct fc_port *sess, u64 lun,
|
||||
case QLA_TGT_CLEAR_TS:
|
||||
case QLA_TGT_ABORT_TS:
|
||||
abort_cmds_for_lun(vha, lun, a->u.isp24.fcp_hdr.s_id);
|
||||
/* drop through */
|
||||
/* fall through */
|
||||
case QLA_TGT_CLEAR_ACA:
|
||||
h = qlt_find_qphint(vha, mcmd->unpacked_lun);
|
||||
mcmd->qpair = h->qpair;
|
||||
|
||||
Reference in New Issue
Block a user