Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp713238imu; Tue, 27 Nov 2018 20:52:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vr0LMI3SR0+8rvdtlbD5dZUVG+Cpb4K8BkPAa2XueJgKt8kFUzla/6AnEQzVC+gDHNlY2e X-Received: by 2002:a63:63c3:: with SMTP id x186mr31960535pgb.330.1543380756064; Tue, 27 Nov 2018 20:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543380756; cv=none; d=google.com; s=arc-20160816; b=i9kNh6uMBBaErRG0+7YZSfXtE+zPaUloE8/kvu6S6TIZo1FJH8LDF1L8oiNsgWJBqH 07rmaIuRHTTlZlNz8/BINk/WnfpdcR4QDNkQ5xBHRIYzZTtrb4AA8xew8sZ94K4k4tst /sT4tj20jo9jb6/G5UdfM0uDlLQIyMmIA3arHyDJSqyTj6g85b4McQ/GOVtCz3uLwdLl 0jsDTtbf0xChtfOtOWiQKqY4BBJGLQJyZ7jbRwiAr+TSBsag5CghR6VHVVb3oJ5CpeVp 9PHY1HhEoSUieSry/6J9MLt2NvlAMxhnUj+gl5aXeBfwQFQnzwcGtnmRkivOEybsm8mO Vysw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gCKoQXQ1NdddNX/tdzYZVulR+rFYS5Ni1HZ3tz5uoJ0=; b=UlPF5qO/E1n0A416BLknlz4tHGUy88OKECAklNU1gtQ7VUSiIGuI0lIJvi+v2lg95b b8MxYzq2ufrZCSXixXB6pFC2/8Fl2ebj3aXidEWj0ooDBzIkf4USoTJsyHYbUgybD4PT m/E2SdqIYGtsVhwXnhm7xZr/odmyxzjnma9Cu4T1Fbwi9NvX4tEAUCepVZIZGnUfB3lc 18aPG1Fg6wCVzZZy4oQ7P/hKaUs/DNm8bHnPqXIG7A8Ge8uJf1qjHA6nnzT8kGUijOyC LlYJkSCNCZkjk6RlV6LyEzfxnOjOB+LuS7AIjnKVa/tBaiGK6/GTmvi/kvenWheL9Y8/ n5xA== 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 s35si5957755pgk.392.2018.11.27.20.52.21; Tue, 27 Nov 2018 20:52:36 -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 S1727716AbeK1Pve (ORCPT + 99 others); Wed, 28 Nov 2018 10:51:34 -0500 Received: from gateway30.websitewelcome.com ([192.185.168.15]:47077 "EHLO gateway30.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727394AbeK1Pvc (ORCPT ); Wed, 28 Nov 2018 10:51:32 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway30.websitewelcome.com (Postfix) with ESMTP id A99E046F3 for ; Tue, 27 Nov 2018 22:27:09 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrRNgJI3Q957pRrRNg2c4A; Tue, 27 Nov 2018 22:27:09 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58262 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrRM-001kKf-To; Tue, 27 Nov 2018 22:27:09 -0600 Date: Tue, 27 Nov 2018 22:27:08 -0600 From: "Gustavo A. R. Silva" To: Anil Gurumurthy , Sudarsana Kalluru Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 09/41] scsi: bfa: bfa_fcpim: Mark expected switch fall-throughs Message-ID: <8f042a78366807fe4cf3c1f7157dc80f1dd49219.1543374820.git.gustavo@embeddedor.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) 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.78.127 X-Source-L: No X-Exim-ID: 1gRrRM-001kKf-To X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58262 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 93 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 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); -- 2.17.1