Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp255138imu; Wed, 19 Dec 2018 17:57:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xw7HHAcIAJUHg8Imla+Dk6BPqvIkYraSEPRNizX+MfXBHKEKGtez0T5m6meciCAAT027ha X-Received: by 2002:a63:20e:: with SMTP id 14mr21375267pgc.161.1545271046282; Wed, 19 Dec 2018 17:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545271046; cv=none; d=google.com; s=arc-20160816; b=cXE2TOQxPNb1WObPReTa0bw3BCFWcASXQ6qDD0LUXF0gC41abaeBjCDW0kwo02w2uL q7UvemcEHYuz5Eka+FzskaqgVTs05G1YHKG1KV9ngYBUcVCbs5k6FMSQwH8ZeJUnBjXp lQ50GJQLWPckLAVYix8UocPWUkHDjphgLYEyzH0pXbLYwHLX2mxs0hR8xpQhGy8/cy2w A+y33GIa+GaW4LztWPnmGRekPRyPOSZ++t4VyRB990Vac0aik8IFVCOOQEDqvQmJvHHP Rdpr2FUkj7OZRehKXxhXjw9qnfPM0gN7ao1Zc+eAaaJq3AwUZmePDWYzvlvjxS+k+zDk kxqw== 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=38VWvKY2742njB0aNLfhs1cJlwh7y8Yijg7JdRgvZXs=; b=q9EylusUmia3zK61Wyh5Rvx1wX0NPqSt3nglvSfBUjPK3hDYX3RTosIhh5sBfTrENr s34GS9jvhqXHgZZwQIwsZDGQrdfM2hdkGdnqQp5Hg7NY0DIJpQ58n24CATRlzNmqqTgo VIoFvMq4rnP6kIZ2TOFsZKMtiikt/jQkMpceEe0mUBLkwj10iv/G/fZmmWMJYU5BlCZI tXn+dBT0xoN31cy1BdANvIfETLlpUiYnIhndWKmzfio3ElPfw3WKhqa5KN1o5N7mXC6V Ew3WKOICocA7p4WYxzHMHmPK4q85cu+lLul71gJeHZgmBuX3byUI6etLLFXfBLDfT8jz H34Q== 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 w11si16599428plz.327.2018.12.19.17.57.08; Wed, 19 Dec 2018 17:57:26 -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 S1730330AbeLTAHS (ORCPT + 99 others); Wed, 19 Dec 2018 19:07:18 -0500 Received: from gateway36.websitewelcome.com ([192.185.187.5]:42457 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbeLTAHR (ORCPT ); Wed, 19 Dec 2018 19:07:17 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway36.websitewelcome.com (Postfix) with ESMTP id E83FB400C5EA0 for ; Wed, 19 Dec 2018 17:18:07 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id ZlrwgQuK14FKpZlrwgwFy4; Wed, 19 Dec 2018 18:07:16 -0600 X-Authority-Reason: nr=8 Received: from [189.250.106.44] (port=50512 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 1gZlrw-0015Bg-8u; Wed, 19 Dec 2018 18:07:16 -0600 Subject: Re: [PATCH 32/41] scsi: myrb: Mark expected switch fall-throughs To: Hannes Reinecke Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <15cf75b544d6b2eae77ba98cd201620b44abec36.1543374820.git.gustavo@embeddedor.com> From: "Gustavo A. R. Silva" Message-ID: <025dd9a3-e2a0-cb21-8458-f671a673f634@embeddedor.com> Date: Wed, 19 Dec 2018 18:07:15 -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: <15cf75b544d6b2eae77ba98cd201620b44abec36.1543374820.git.gustavo@embeddedor.com> 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: 1gZlrw-0015Bg-8u X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.76]) [189.250.106.44]:50512 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 20 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:32 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: 1465234 ("Missing break in switch") > Addresses-Coverity-ID: 1465238 ("Missing break in switch") > Addresses-Coverity-ID: 1465242 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva > --- > drivers/scsi/myrb.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c > index 0642f2d0a3bb..539ac8ce4fcd 100644 > --- a/drivers/scsi/myrb.c > +++ b/drivers/scsi/myrb.c > @@ -1528,6 +1528,7 @@ static int myrb_ldev_queuecommand(struct Scsi_Host *shost, > scmd->scsi_done(scmd); > return 0; > } > + /* fall through */ > case WRITE_6: > lba = (((scmd->cmnd[1] & 0x1F) << 16) | > (scmd->cmnd[2] << 8) | > @@ -1544,6 +1545,7 @@ static int myrb_ldev_queuecommand(struct Scsi_Host *shost, > scmd->scsi_done(scmd); > return 0; > } > + /* fall through */ > case WRITE_10: > case VERIFY: /* 0x2F */ > case WRITE_VERIFY: /* 0x2E */ > @@ -1560,6 +1562,7 @@ static int myrb_ldev_queuecommand(struct Scsi_Host *shost, > scmd->scsi_done(scmd); > return 0; > } > + /* fall through */ > case WRITE_12: > case VERIFY_12: /* 0xAF */ > case WRITE_VERIFY_12: /* 0xAE */ >