[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7d03d419-339e-afbc-d522-ba8ae66bfdd0@embeddedor.com>
Date: Thu, 10 Jan 2019 13:58:11 -0600
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
To: Willem Riede <osst@...de.org>, osst-users@...ts.sourceforge.net
Cc: "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 34/41] scsi: osst: mark expected switch fall-throughs
Hi,
Friendly ping (second one):
Who can ack/review/take this patch, please?
Thanks
--
Gustavo
On 12/19/18 6:07 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: 114983 ("Missing break in switch")
>> Addresses-Coverity-ID: 114984 ("Missing break in switch")
>> Addresses-Coverity-ID: 114985 ("Missing break in switch")
>> Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
>> ---
>> drivers/scsi/osst.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
>> index 664c1238a87f..7e877b43785d 100644
>> --- a/drivers/scsi/osst.c
>> +++ b/drivers/scsi/osst.c
>> @@ -216,12 +216,14 @@ static void osst_analyze_sense(struct osst_request *SRpnt, struct st_cmdstatus *
>> 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);
>> @@ -591,6 +593,7 @@ static void osst_init_aux(struct osst_tape * STp, int frame_type, int frame_seq_
>> dat->dat_list[0].flags = frame_type==OS_FRAME_TYPE_MARKER?
>> OS_DAT_FLAGS_MARK:OS_DAT_FLAGS_DATA;
>> dat->dat_list[0].reserved = 0;
>> + /* fall through */
>> case OS_FRAME_TYPE_EOD:
>> aux->update_frame_cntr = htonl(0);
>> par->partition_num = OS_DATA_PARTITION;
>> @@ -4086,6 +4089,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt,
>> switch (cmd_in) {
>> case MTFSFM:
>> chg_eof = 0; /* Changed from the FSF after this */
>> + /* fall through */
>> case MTFSF:
>> if (STp->raw)
>> return (-EIO);
>> @@ -4101,6 +4105,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt,
>> case MTBSF:
>> chg_eof = 0; /* Changed from the FSF after this */
>> + /* fall through */
>> case MTBSFM:
>> if (STp->raw)
>> return (-EIO);
>> @@ -4312,6 +4317,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt,
>> name, STp->block_size);
>> return 0;
>> }
>> + /* fall through */
>> case MTSETDENSITY: /* Set tape density */
>> case MTSETDRVBUFFER: /* Set drive buffering */
>> case SET_DENS_AND_BLK: /* Set density and block size */
>>
Powered by blists - more mailing lists