Re: [PATCH 37/41] scsi: st: mark expected switch fall-throughs

From: Gustavo A. R. Silva
Date: Thu Jan 10 2019 - 14:56:36 EST


Hi,

Friendly ping (second one):

Who can ack/review/take this patch, please?

Thanks
--
Gustavo

On 12/19/18 6:08 PM, Gustavo A. R. Silva wrote:
Hi,

Friendly ping:

Who can ack or review this patch, please?

Thanks
--
Gustavo

On 11/27/18 10:33 PM, Gustavo A. R. Silva wrote:
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 114994 ("Missing break in switch")
Addresses-Coverity-ID: 114995 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
---
 drivers/scsi/st.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 7ff22d3f03e3..7c7a742a5ef7 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -337,12 +337,14 @@ static void st_analyze_sense(struct st_request *SRpnt, struct st_cmdstatus *s)
ÂÂÂÂÂÂÂÂÂ switch (sense[0] & 0x7f) {
ÂÂÂÂÂÂÂÂÂ case 0x71:
ÂÂÂÂÂÂÂÂÂÂÂÂÂ s->deferred = 1;
+ÂÂÂÂÂÂÂÂÂÂÂ /* fall through */
ÂÂÂÂÂÂÂÂÂ case 0x70:
ÂÂÂÂÂÂÂÂÂÂÂÂÂ s->fixed_format = 1;
ÂÂÂÂÂÂÂÂÂÂÂÂÂ s->flags = sense[2] & 0xe0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂ break;
ÂÂÂÂÂÂÂÂÂ case 0x73:
ÂÂÂÂÂÂÂÂÂÂÂÂÂ s->deferred = 1;
+ÂÂÂÂÂÂÂÂÂÂÂ /* fall through */
ÂÂÂÂÂÂÂÂÂ case 0x72:
ÂÂÂÂÂÂÂÂÂÂÂÂÂ s->fixed_format = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂ ucp = scsi_sense_desc_find(sense, SCSI_SENSE_BUFFERSIZE, 4);
@@ -2721,6 +2723,7 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon
ÂÂÂÂÂ switch (cmd_in) {
ÂÂÂÂÂ case MTFSFM:
ÂÂÂÂÂÂÂÂÂ chg_eof = 0;ÂÂÂ /* Changed from the FSF after this */
+ÂÂÂÂÂÂÂ /* fall through */
ÂÂÂÂÂ case MTFSF:
ÂÂÂÂÂÂÂÂÂ cmd[0] = SPACE;
ÂÂÂÂÂÂÂÂÂ cmd[1] = 0x01;ÂÂÂ /* Space FileMarks */
@@ -2735,6 +2738,7 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon
ÂÂÂÂÂÂÂÂÂ break;
ÂÂÂÂÂ case MTBSFM:
ÂÂÂÂÂÂÂÂÂ chg_eof = 0;ÂÂÂ /* Changed from the FSF after this */
+ÂÂÂÂÂÂÂ /* fall through */
ÂÂÂÂÂ case MTBSF:
ÂÂÂÂÂÂÂÂÂ cmd[0] = SPACE;
ÂÂÂÂÂÂÂÂÂ cmd[1] = 0x01;ÂÂÂ /* Space FileMarks */