Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp256298imu; Wed, 19 Dec 2018 17:59:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/WUrKMDrsD/cWCIJMLj87vs2kwoyFdBpCr8R3Btf0P8cms4xeuSDJm0dk1kRMPbDifDwAjS X-Received: by 2002:a63:cd4c:: with SMTP id a12mr21866311pgj.252.1545271154838; Wed, 19 Dec 2018 17:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545271154; cv=none; d=google.com; s=arc-20160816; b=GceQeFfj+sHzBCwzBXxFUpjoTU+I9SY+kas8fGdoGYJggaRfuF9+sSwnCnh3DxLxeI GqjI1aPtG7fUjOMRzjrELaytci5CqnE13ORkgC9W1uFC6LFEGgIQAgeDSSTOrVzRHKA8 8QMMTgFC5qIxp83FgiOfpI94/mVM55cdb+rpjLUCuOsl4JzdOEZk160ybyjnZn73g9FX IuQnySZuNJ/0UtWynR+1L7hnW2Y0CZNw+I4gi9XkpZ+Z1M1lo4REmwEmBLtPf4Df+O/h NtIHUxP8yg2aygzcDDtmwFwFKBGhlavSXVpBsKNkLjGsEkAsnBnWyoD8vSHC6XTClkQi T+og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=s3oYle9H1sMswCA0G7LNqNcuHexhDgA5nBsZ1oBOrbg=; b=AamfsfyL0sysLKiPi7QrhvTwR3BsbFamt3RLNZLT6YOHsN6eshHMnqFaQTg4I/RNtw m080Bmn/MYVA2x5MI0lX2VMPlr7JF6neMO01Glb1MfNvIyCchvV7HA2hLklUFXfzOBuo Tb4I2Kv9edNlvmz5ruuLb2ie08gSn9tzYZAegvdn1+ey0t+ftpGrOhL/ZU/ORnSJci4m VyeCO+dX+B9NTFn9e2ItTqvPZa7c0vDQlabV9cHcAkxWuoWlhNAXeEc0ow5CUHfcrgKw dgKZi0szavIbA5uXsoPfaUP5hszRtk+PSuwwwj794YStuoaW7PQGhZGD98QrROIOLyX/ /MMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si14818931pls.408.2018.12.19.17.58.59; Wed, 19 Dec 2018 17:59:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730386AbeLTAHk (ORCPT + 99 others); Wed, 19 Dec 2018 19:07:40 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.178]:38749 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730371AbeLTAHj (ORCPT ); Wed, 19 Dec 2018 19:07:39 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 48D0950545 for ; Wed, 19 Dec 2018 18:07:39 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id ZlsJgQuYf4FKpZlsJgwGCW; Wed, 19 Dec 2018 18:07:39 -0600 X-Authority-Reason: nr=8 Received: from [189.250.106.44] (port=50518 helo=[192.168.1.76]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gZlsI-0015Ox-SJ; Wed, 19 Dec 2018 18:07:38 -0600 Subject: Re: [PATCH 34/41] scsi: osst: mark expected switch fall-throughs To: Willem Riede , osst-users@lists.sourceforge.net Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: From: "Gustavo A. R. Silva" Message-ID: Date: Wed, 19 Dec 2018 18:07:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.106.44 X-Source-L: No X-Exim-ID: 1gZlsI-0015Ox-SJ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.76]) [189.250.106.44]:50518 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 31 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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 */ >