Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp703567imu; Tue, 27 Nov 2018 20:36:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ur7ALY6yjNu3QXIitWFs5uivM43ZYthPyBfn5PBF/0qzYLqi0Z900BQTL2HF0899mO2z1W X-Received: by 2002:a17:902:8ec9:: with SMTP id x9mr36078345plo.27.1543379818729; Tue, 27 Nov 2018 20:36:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543379818; cv=none; d=google.com; s=arc-20160816; b=Oy8K5rKlYi3cjOiRRecwP9XZNeOmcDMFNQV3Mr9bjBnH8IngD0v5jrXnfmfP0Kytxg zVRwa0x7qpC0SUZIFNJXJvjMFOsb/cJfq5LP4wStXGbW/SmeYeNL7YgGXOiSK1fhIyVv wDk1pcqAEeRj96aNCgVTZu+WHw28eg7jWAwcd2LSmRHxD9v5u85QAXwj31vZ/wCw+B9/ hg1mMdmVpUidDBfJCUgI3C+NpcWbdGCvD6uBJjU4BKCpinBclNckernph9KGzLX6M4n7 flJV2FftfvpuEtXL2PFImccAyuBjxJ2sCSdn9qw8PbdQwGtogPic3Bjpb4SpFZGAznDh BIeA== 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=Mzd6E000DJMc6EVrX7JXl8oqNnW4ZbXNOAUPG+IQgrg=; b=p6zU0EJ8dh+CQgoGV/6Ha5obrdxjDBG4VhkVL5s9+s1e6MzE6tl3KkZFPkW9QzATNt rNNwhb1AwxZtcmTfIK5X9xvSknR9f5Mphq3XlyGT5BCKov5Ks0uMB8ZT97p/in8b9TYV kAwasqakKeppr7CTjWyfmpVYiC5laSyGJ2+xAtA1nJEMjDMurKIJF2wFqrtxJtI83/4Z TocajxyEdse0yef6M74//GQk0PFYiT7MeTqWnVR6R2SDumuU0NUp6d5vBktHaHYqILhm dYMfvIRkYrJaV6196tYVw3l6e+UHc98EbqUgSQfSmhLXgrgjEwgeNQzv9K52hjhgKNIl 1DAg== 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 s4si6893864pfb.190.2018.11.27.20.36.43; Tue, 27 Nov 2018 20:36:58 -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 S1727428AbeK1Peo (ORCPT + 99 others); Wed, 28 Nov 2018 10:34:44 -0500 Received: from gateway24.websitewelcome.com ([192.185.51.122]:23187 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbeK1Peo (ORCPT ); Wed, 28 Nov 2018 10:34:44 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 2500A4B98F for ; Tue, 27 Nov 2018 22:34:30 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrYUgzR74aSeyRrYUgC43R; Tue, 27 Nov 2018 22:34:30 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58400 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrYT-001qnw-28; Tue, 27 Nov 2018 22:34:29 -0600 Date: Tue, 27 Nov 2018 22:34:25 -0600 From: "Gustavo A. R. Silva" To: Vinayak Holikatti Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 40/41] scsi: ufs: ufshcd: 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: 1gRrYT-001qnw-28 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58400 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 270 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: 1087954 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/ufs/ufshcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 003d489f1b4b..be207197b63f 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1551,6 +1551,7 @@ int ufshcd_hold(struct ufs_hba *hba, bool async) * currently running. Hence, fall through to cancel gating * work and to enable clocks. */ + /* fall through */ case CLKS_OFF: ufshcd_scsi_block_requests(hba); hba->clk_gating.state = REQ_CLKS_ON; @@ -1562,6 +1563,7 @@ int ufshcd_hold(struct ufs_hba *hba, bool async) * fall through to check if we should wait for this * work to be done or not. */ + /* fall through */ case REQ_CLKS_ON: if (async) { rc = -EAGAIN; @@ -4620,6 +4622,7 @@ ufshcd_scsi_cmd_status(struct ufshcd_lrb *lrbp, int scsi_status) switch (scsi_status) { case SAM_STAT_CHECK_CONDITION: ufshcd_copy_sense_data(lrbp); + /* fall through */ case SAM_STAT_GOOD: result |= DID_OK << 16 | COMMAND_COMPLETE << 8 | -- 2.17.1