target: Suppress gcc 7 fallthrough warnings
Avoid that gcc 7 reports the following warning when building with W=1: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Mike Christie <mchristi@redhat.com> Cc: Varun Prakash <varun@chelsio.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
c48e5594d0
commit
d7e595ddd5
|
@ -446,6 +446,7 @@ cxgbit_uld_lro_rx_handler(void *hndl, const __be64 *rsp,
|
||||||
case CPL_RX_ISCSI_DDP:
|
case CPL_RX_ISCSI_DDP:
|
||||||
case CPL_FW4_ACK:
|
case CPL_FW4_ACK:
|
||||||
lro_flush = false;
|
lro_flush = false;
|
||||||
|
/* fall through */
|
||||||
case CPL_ABORT_RPL_RSS:
|
case CPL_ABORT_RPL_RSS:
|
||||||
case CPL_PASS_ESTABLISH:
|
case CPL_PASS_ESTABLISH:
|
||||||
case CPL_PEER_CLOSE:
|
case CPL_PEER_CLOSE:
|
||||||
|
|
|
@ -353,6 +353,7 @@ static int core_scsi3_pr_seq_non_holder(struct se_cmd *cmd, u32 pr_reg_type,
|
||||||
break;
|
break;
|
||||||
case PR_TYPE_WRITE_EXCLUSIVE_REGONLY:
|
case PR_TYPE_WRITE_EXCLUSIVE_REGONLY:
|
||||||
we = 1;
|
we = 1;
|
||||||
|
/* fall through */
|
||||||
case PR_TYPE_EXCLUSIVE_ACCESS_REGONLY:
|
case PR_TYPE_EXCLUSIVE_ACCESS_REGONLY:
|
||||||
/*
|
/*
|
||||||
* Some commands are only allowed for registered I_T Nexuses.
|
* Some commands are only allowed for registered I_T Nexuses.
|
||||||
|
@ -361,6 +362,7 @@ static int core_scsi3_pr_seq_non_holder(struct se_cmd *cmd, u32 pr_reg_type,
|
||||||
break;
|
break;
|
||||||
case PR_TYPE_WRITE_EXCLUSIVE_ALLREG:
|
case PR_TYPE_WRITE_EXCLUSIVE_ALLREG:
|
||||||
we = 1;
|
we = 1;
|
||||||
|
/* fall through */
|
||||||
case PR_TYPE_EXCLUSIVE_ACCESS_ALLREG:
|
case PR_TYPE_EXCLUSIVE_ACCESS_ALLREG:
|
||||||
/*
|
/*
|
||||||
* Each registered I_T Nexus is a reservation holder.
|
* Each registered I_T Nexus is a reservation holder.
|
||||||
|
|
|
@ -2092,7 +2092,7 @@ static void transport_complete_qf(struct se_cmd *cmd)
|
||||||
ret = cmd->se_tfo->queue_data_in(cmd);
|
ret = cmd->se_tfo->queue_data_in(cmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Fall through for DMA_TO_DEVICE */
|
/* fall through */
|
||||||
case DMA_NONE:
|
case DMA_NONE:
|
||||||
queue_status:
|
queue_status:
|
||||||
trace_target_cmd_complete(cmd);
|
trace_target_cmd_complete(cmd);
|
||||||
|
@ -2270,7 +2270,7 @@ static void target_complete_ok_work(struct work_struct *work)
|
||||||
goto queue_full;
|
goto queue_full;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Fall through for DMA_TO_DEVICE */
|
/* fall through */
|
||||||
case DMA_NONE:
|
case DMA_NONE:
|
||||||
queue_status:
|
queue_status:
|
||||||
trace_target_cmd_complete(cmd);
|
trace_target_cmd_complete(cmd);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user