Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp712851imu; Tue, 27 Nov 2018 20:52:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/UlqeYvbuDaYwU2VXqge4N4pB91MaYPf6pkm36X5gF2uNWC+PZmu2KTll/omfbF9yAPIC5z X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr2483598plt.106.1543380722355; Tue, 27 Nov 2018 20:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543380722; cv=none; d=google.com; s=arc-20160816; b=s1dmQMGXA9R10lTHpwmkWrE+wVmFvHIS0MxLfDOC8U8Cv9q6kkMeg/aJUeICJQ9KT6 6vbMvitMORoOepnrPRNv3SBdcuh8CyuW8K4McaIo81WQYA3WlemrqhCv75mW0wHDCaRA +gqcP4u0KVEFLNx1Ihb+l/Q7NTSmJPiH0q/INMco/ZrZ70rvUImjUpUaJ5uDvslZ5IS8 jxmL2UrkxsAi+t++XHKmAYLoViD945+sAof+/dVUosoJjIRWiNh0itwNpZHeKnVxWZvU grhK1jC/6bQwaOMGqEJm2IEt1jEP14IK7T0M4xiV1jU+utOqcrJMIulg8JXNOOnnSzIZ VaaA== 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=upyuARlfVc+AAM3achNN66c0h3UxonaLC6+BeZZKNbw=; b=umfc3wmhyOOphYc7CiXCfmQep61xnYuNpHf7/W3wFwga4IKX67D2/8iwQp57UBBgIL kU12bLV6jL2YrELATXFsIVWq8YR74ZTeBTHZIbxrPexpPl6y+t9l6hT7hsLC6kNKhk0r 9xFBIF+O8LX3amB6gZQTAojS9zyTMi0OgglAr0fcgJ+97leUii0YzWKl1smkKICxypoB eLrMm+SK2UsxbyLmSK6vyBxM6Jlg+0vaJ833oVhuLHNyShyRoO5H7XY70qxHI0BTvHR/ gJh7xR7ImPYat8gszKiwFdwWPdsF7kX1Of+N3rKo2fMuPTez+02PrAMYE1Y7nalN7Fw3 AbIw== 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 h5si6600205pfg.233.2018.11.27.20.51.47; Tue, 27 Nov 2018 20:52:02 -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 S1727665AbeK1PvR (ORCPT + 99 others); Wed, 28 Nov 2018 10:51:17 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.111]:26300 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbeK1PvQ (ORCPT ); Wed, 28 Nov 2018 10:51:16 -0500 X-Greylist: delayed 1314 seconds by postgrey-1.27 at vger.kernel.org; Wed, 28 Nov 2018 10:51:16 EST Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 8EE371D6221 for ; Tue, 27 Nov 2018 22:29:09 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrTJgMwn5BcCXRrTJgSCYp; Tue, 27 Nov 2018 22:29:09 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58290 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrTI-001lsB-NP; Tue, 27 Nov 2018 22:29:09 -0600 Date: Tue, 27 Nov 2018 22:29:07 -0600 From: "Gustavo A. R. Silva" To: Don Brace , esc.storagedev@microsemi.com Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 15/41] scsi: hpsa: mark expected switch fall-throughs Message-ID: <991ec154d1a1da019442e4fd025a39fa2ad2bebb.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: 1gRrTI-001lsB-NP X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58290 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 126 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: 1195463 ("Missing break in switch") Addresses-Coverity-ID: 1195464 ("Missing break in switch") Addresses-Coverity-ID: 1195465 ("Missing break in switch") Addresses-Coverity-ID: 1195466 ("Missing break in switch") Addresses-Coverity-ID: 1357338 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/hpsa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index c9cccf35e9d7..bc64e8a0449d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -4663,6 +4663,7 @@ static int fixup_ioaccel_cdb(u8 *cdb, int *cdb_len) case WRITE_6: case WRITE_12: is_write = 1; + /* fall through */ case READ_6: case READ_12: if (*cdb_len == 6) { @@ -5093,6 +5094,7 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h, switch (cmd->cmnd[0]) { case WRITE_6: is_write = 1; + /* fall through */ case READ_6: first_block = (((cmd->cmnd[1] & 0x1F) << 16) | (cmd->cmnd[2] << 8) | @@ -5103,6 +5105,7 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h, break; case WRITE_10: is_write = 1; + /* fall through */ case READ_10: first_block = (((u64) cmd->cmnd[2]) << 24) | @@ -5115,6 +5118,7 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h, break; case WRITE_12: is_write = 1; + /* fall through */ case READ_12: first_block = (((u64) cmd->cmnd[2]) << 24) | @@ -5129,6 +5133,7 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h, break; case WRITE_16: is_write = 1; + /* fall through */ case READ_16: first_block = (((u64) cmd->cmnd[2]) << 56) | -- 2.17.1