Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5353926imu; Wed, 19 Dec 2018 09:38:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xg5XHL8xEJar+ab0hlJKru8VoBtpeNAZa1MAuSUvmGupDQr1FbAr0eC9ulT+HHjzZqZtuP X-Received: by 2002:a63:1c61:: with SMTP id c33mr19755749pgm.354.1545241117237; Wed, 19 Dec 2018 09:38:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545241117; cv=none; d=google.com; s=arc-20160816; b=dUuKieR9J8DJimarE4f3kHxdy+3B6u+a9/44lsqRbDyFtJ6sXXO0gSCsP2nbYzm0Du i05IcDm7e+MjZNYTwsU5PCZgHZZpiBMwGLGPePBXZ0aqvMTdG8B6FadfOzi2GqWQB0VV Wvre/IwzYec8b0AwZxbyb7mJ/Q3fq9zwc1RCga2OGsoILFlPX+iYstqvAP8V5xFDm0ys MIQeFGABHlHpGFOS1IBq3wbezJp5x0g4aTsyYFnI2lXYqbLSDewCkhEzleV/DY3ij/A8 fDXcyJB27HdRNkdxI/bpQgeG9mwzU4Ny1sF6qMr5o/vImgvKJoYfLA1GsTfJU4WsA5ZK l4ig== 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=HNpTnfYmx1MmhuUYWWL6UM6zbkYiIprOt7Q2XPtKtqw=; b=Yzg4uDdt6rSeGQL5LpOCEfC79sH5OWJnM1HnMF6dpo4Q9+9Y3aM6pdoHskA16xKoJi umCkB79CGE7Vh1osOsMGtu2ywfWwr7p9HG3jbtimJK6PBnVr7QIH0TYaZPRwXIJQN+EZ g6rD5NTgM/ZqGsk+yn5hAUKtPf8y0V6OXZeNahHq7h5zXp5JmlRuP2daQTiJZLB5JYYz w+8iLS2jMWwiiYu9b4K/XcQPnIM3Xk1RdohWwG+B1yJflWojeQ3yQ6z4gyC+1CL+6GRX BrtlAAOP6SRBgJiCoIeqG8g/MVj1QyMnWpYgsckpxv7EXv6NTY58RWMuY+O3LK9jYjHp FS2A== 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 m39si16545918plg.315.2018.12.19.09.38.21; Wed, 19 Dec 2018 09:38:37 -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 S1730273AbeLSPit (ORCPT + 99 others); Wed, 19 Dec 2018 10:38:49 -0500 Received: from gateway30.websitewelcome.com ([192.185.179.30]:11597 "EHLO gateway30.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728040AbeLSPis (ORCPT ); Wed, 19 Dec 2018 10:38:48 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway30.websitewelcome.com (Postfix) with ESMTP id ADF325125 for ; Wed, 19 Dec 2018 09:38:47 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id ZdvrgGF2D4FKpZdvrglean; Wed, 19 Dec 2018 09:38:47 -0600 X-Authority-Reason: nr=8 Received: from [189.250.106.44] (port=35314 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 1gZdvr-000gok-9V; Wed, 19 Dec 2018 09:38:47 -0600 Subject: Re: [PATCH 09/41] scsi: bfa: bfa_fcpim: Mark expected switch fall-throughs To: Anil Gurumurthy , Sudarsana Kalluru Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <8f042a78366807fe4cf3c1f7157dc80f1dd49219.1543374820.git.gustavo@embeddedor.com> From: "Gustavo A. R. Silva" Message-ID: <8d5684c5-7b09-3e4a-d0ad-a024e3d06d05@embeddedor.com> Date: Wed, 19 Dec 2018 09:38:46 -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: <8f042a78366807fe4cf3c1f7157dc80f1dd49219.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: 1gZdvr-000gok-9V X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.76]) [189.250.106.44]:35314 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 37 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:27 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that I replaced "Fall through !!!" with a "fall through" > annotation, which is what GCC is expecting to find. > > Addresses-Coverity-ID: 114971 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva > --- > drivers/scsi/bfa/bfa_fcpim.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/scsi/bfa/bfa_fcpim.c b/drivers/scsi/bfa/bfa_fcpim.c > index 2c85f5b1f9c1..7e996bcf026c 100644 > --- a/drivers/scsi/bfa/bfa_fcpim.c > +++ b/drivers/scsi/bfa/bfa_fcpim.c > @@ -2586,6 +2586,7 @@ bfa_ioim_send_ioreq(struct bfa_ioim_s *ioim) > case FCP_IODIR_RW: > bfa_stats(itnim, input_reqs); > bfa_stats(itnim, output_reqs); > + /* fall through */ > default: > bfi_h2i_set(m->mh, BFI_MC_IOIM_IO, 0, bfa_fn_lpu(ioim->bfa)); > } > @@ -2820,6 +2821,7 @@ bfa_ioim_isr(struct bfa_s *bfa, struct bfi_msg_s *m) > > case BFI_IOIM_STS_TIMEDOUT: > bfa_stats(ioim->itnim, iocomp_timedout); > + /* fall through */ > case BFI_IOIM_STS_ABORTED: > rsp->io_status = BFI_IOIM_STS_ABORTED; > bfa_stats(ioim->itnim, iocomp_aborted); > @@ -3215,9 +3217,7 @@ bfa_tskim_sm_cleanup_qfull(struct bfa_tskim_s *tskim, > switch (event) { > case BFA_TSKIM_SM_DONE: > bfa_reqq_wcancel(&tskim->reqq_wait); > - /* > - * Fall through !!! > - */ > + /* fall through */ > case BFA_TSKIM_SM_QRESUME: > bfa_sm_set_state(tskim, bfa_tskim_sm_cleanup); > bfa_tskim_send_abort(tskim); >