Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp702260imu; Tue, 27 Nov 2018 20:34:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/UbkpQeWRhXudJ8dvSXw1nlDFyFzGnvtDYEtvVv5A91rraTbIXNFtRvRdH8q4DRBiumaK4Y X-Received: by 2002:a17:902:7402:: with SMTP id g2mr34750469pll.198.1543379689784; Tue, 27 Nov 2018 20:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543379689; cv=none; d=google.com; s=arc-20160816; b=CIGo7E8xfP/ibeIYijRAoYaHsnw4T1pK2gAAZjKW9t9NSyI4pJTq5BKrOXaoUmzlA7 3Ad0UxSRu/jmc1jPK/vfwWRN0DrKLfbO9vHtZP2ighepkiG5c1krD9h8eOn438rYj3xC sOfIRhJFUX4Yn2EXNujaOFIWaSxSwkyD4xpzp75RyDd0U/r3NC0bad2TlBf9E38r9MCD 4zgrr1zuwzXmYae0LZ4JNCIO+bVOp3bWI12NuXkxLA8pwoRwQxHevLrMawpjE3PrYKkL TNsv/eDnefk48MO149vQr0/bwOygHvbxXKxjYT4jbSysUQB5Xqyx1pY0RDo7FM6+BKD8 aT6Q== 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=QHXxShHu1D7f0j75yGdofnqy5sRBeEFLOkVOl+QaTlk=; b=bmzkzfOMg2J7yc1GbfevUQ+7Fbn4YmGOmD9w806sDHEbNpzr/Bh7RY2FjFVFfciSX+ I5gb3P+0CG1OaEWeT7pw/JtoE+ZKt1VKWyUJkxg/zvuVTtrzbF6tQw6nGEYyxgp2T7OH DImwbUhHP5+dl7Y3rl2k2ONHdrz+nuX3miLdDjFcMhT9mfUOsITsxxdX2Z85pcxmUdM1 VKXzoNqBkO8SotdDvOutAw9DF9mv13a44pnFtBLQhx1PaSBgslwTc9gyJIIhQWFGNXQN z/SBX26+GyRKKxy351I4u84FxrK9781PmFSTgLtAQeqJjdSNNobe65bPRGiQf3+I6mNW ZHcw== 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 j7si6854890plb.91.2018.11.27.20.34.34; Tue, 27 Nov 2018 20:34:49 -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 S1727280AbeK1PeN (ORCPT + 99 others); Wed, 28 Nov 2018 10:34:13 -0500 Received: from gateway31.websitewelcome.com ([192.185.144.97]:41503 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbeK1PeN (ORCPT ); Wed, 28 Nov 2018 10:34:13 -0500 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway31.websitewelcome.com (Postfix) with ESMTP id D6E5F58464 for ; Tue, 27 Nov 2018 22:33:58 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrXygAwkPSjJARrXygYPHn; Tue, 27 Nov 2018 22:33:58 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58388 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrXx-001qNo-SJ; Tue, 27 Nov 2018 22:33:58 -0600 Date: Tue, 27 Nov 2018 22:33:54 -0600 From: "Gustavo A. R. Silva" To: Kai =?iso-8859-1?Q?M=E4kisara?= Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 37/41] scsi: st: mark expected switch fall-throughs Message-ID: 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: 1gRrXx-001qNo-SJ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58388 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 255 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: 114994 ("Missing break in switch") Addresses-Coverity-ID: 114995 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/st.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 7ff22d3f03e3..7c7a742a5ef7 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -337,12 +337,14 @@ static void st_analyze_sense(struct st_request *SRpnt, struct st_cmdstatus *s) 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); @@ -2721,6 +2723,7 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon switch (cmd_in) { case MTFSFM: chg_eof = 0; /* Changed from the FSF after this */ + /* fall through */ case MTFSF: cmd[0] = SPACE; cmd[1] = 0x01; /* Space FileMarks */ @@ -2735,6 +2738,7 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon break; case MTBSFM: chg_eof = 0; /* Changed from the FSF after this */ + /* fall through */ case MTBSF: cmd[0] = SPACE; cmd[1] = 0x01; /* Space FileMarks */ -- 2.17.1