Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp717983imu; Tue, 27 Nov 2018 21:00:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/WUSCrvBedmaonYb7Xhojo+umesC/+grtmvsZ8KpHoFQQsbv+sAKp9wiMupWcoF+7vdpRyO X-Received: by 2002:a63:cd4c:: with SMTP id a12mr32534137pgj.252.1543381223328; Tue, 27 Nov 2018 21:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543381223; cv=none; d=google.com; s=arc-20160816; b=LZOU4nzsUMAD3WxqCuL46UIp2AVlU+ZNlYkST3m2o+pReBkalJ1O1vNbFzCHfgZp8t 1J1kj5dyxuLoejyS2ZernPhegXlexRZh8WDBjbMmqj6xwSwTckcolFgIuiTPwr0wlB3p DPf0TGfmjQP+wVxfiC9HIHyLmeZmeSXi3ZdzTx2frHFBhImSRlZFoeG48kaI4Jffx++F +xFw57Hk7WI+aVgClV4Rnih5C6ZkzSri8dGxyMOvgZDjCokbNQJ4IXG1DhykPrmffGUV CKyxIbVky3eQzB7NskuF/UMveh+jl+8CuhKqX+t68ofiBveBJE+QZ9++wvwYCNhWWtuZ dNCg== 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=2mHJdHk9lVNGnQTBMOXfd+rtIODbmowzVFwrcd/JpcE=; b=IY4rDpCX/6jYaGZ7tJC6yOlyddYABgfZBzxmxLoAlMm4ufSHdSSODYY78z0lf8yBbX g219zbgguF1ankAQChOWyJC0auoUXoh4kuXS/aJLqlQvD4lDfh+eMu7N6Z3euVfTOXCl DOAt3Y8PDAzoD860H6IPFPRfmcTAbGCWzLC4RPxTnX98dkN8xl/kDwbmGktrNOJNq9q7 rFHcNw7Hv6b68UxqsyKwhOiy9Q/bnKoNO4O5ildWYMS8+csTv1Cj7w3aOAGUGxtabZum bMUwQ9vEPBR9n9Tgsm6JYYpxrvIZF0wabcQ4zc/ZbYL0RcEgujAaDM+Di/ryjQEejg9E PPdg== 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 k35si5318650pgm.225.2018.11.27.21.00.08; Tue, 27 Nov 2018 21:00:23 -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 S1727497AbeK1P6n (ORCPT + 99 others); Wed, 28 Nov 2018 10:58:43 -0500 Received: from gateway33.websitewelcome.com ([192.185.145.87]:11174 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbeK1P6n (ORCPT ); Wed, 28 Nov 2018 10:58:43 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 7F4DF2A127 for ; Tue, 27 Nov 2018 22:34:06 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrY6gzQu8aSeyRrY6gC3qf; Tue, 27 Nov 2018 22:34:06 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58390 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrY5-001qWc-Sl; Tue, 27 Nov 2018 22:34:05 -0600 Date: Tue, 27 Nov 2018 22:34:04 -0600 From: "Gustavo A. R. Silva" To: Matthew Wilcox Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 38/41] scsi: sym53c8xx_2: sym_hipd: mark expected switch fall-throughs Message-ID: <81f959a632339d224fd0dd894746d1081bf249f3.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: 1gRrY5-001qWc-Sl X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58390 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 260 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. Addresses-Coverity-ID: 114996 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/sym53c8xx_2/sym_hipd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 0a2a54517b15..054fb0599263 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c @@ -3072,6 +3072,7 @@ static void sym_sir_bad_scsi_status(struct sym_hcb *np, int num, struct sym_ccb sym_print_addr(cp->cmd, "%s\n", s_status == S_BUSY ? "BUSY" : "QUEUE FULL\n"); } + /* fall through */ default: /* S_INT, S_INT_COND_MET, S_CONFLICT */ sym_complete_error (np, cp); break; @@ -4632,6 +4633,7 @@ static void sym_int_sir(struct sym_hcb *np) * Negotiation failed. * Target does not want answer message. */ + /* fall through */ case SIR_NEGO_PROTO: sym_nego_default(np, tp, cp); goto out; -- 2.17.1