From patchwork Sun Jul 28 23:56:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 11063115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 72CB7912 for ; Sun, 28 Jul 2019 23:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AD2B28721 for ; Sun, 28 Jul 2019 23:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3691E2872A; Sun, 28 Jul 2019 23:56:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C730428721 for ; Sun, 28 Jul 2019 23:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vUmtRIDUubaZYSMG6ZyZ2VP3BBu2RZmzxv6377bpSC4=; b=eL5pM6ii1XaPL1 iuUL0PLpoK+elal7luJ2mXJBbsENTiSLE5R+VMnNMnvh+o3d0zh4pZ/ahFMcuVOD0TTLDA2SEjj2s tq5hvO7mfsOFzXWtVqN2rcvI004qW3hjnJmjL+Fy0YHKUDl2P1vs2NisZ+/2U+J693av9hIT5KZbi NcH6YcWbP56r7d5RiFcvUEIjt63akJepHN12PAnPPEyCgDJBx2/PdvvEfvTJVk9dsi/3RQNVqA+Q/ Jkmm1KcGgSXuVeq1dWlk4t3lRdlzH7ZqCFgbuBiRvkqLJWfoOj0mC3ZGjX6T5Cfsloz7DtMrNodGd WRmuGoeyVxevq8nbVyIA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hrt1Z-0007QM-AM; Sun, 28 Jul 2019 23:56:21 +0000 Received: from gateway31.websitewelcome.com ([192.185.143.39]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hrt1V-0007Pu-Dr for linux-arm-kernel@lists.infradead.org; Sun, 28 Jul 2019 23:56:19 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 825D410FC9 for ; Sun, 28 Jul 2019 18:56:16 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id rt1Uhik0o90onrt1UhaU2s; Sun, 28 Jul 2019 18:56:16 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3KsSCEb6Km1Yj7+6lKrHE7C6XEmon8NCW2WRRXKbJ8g=; b=kZrN88PeaAUc4SGFOYQXL6P6Ny ae0HgZKOUZX+DcwN3xo4Y4bpXXq6vtCubC2vF1mqUAo1znCJ2OySjyMA8ATzARfR5FTCuWF5oeuBK YHI4rykUPdL6BFjMw7rz2ULzZ+DOHlw6dtl3v9UwkuTnBmFLx49G5ShXKwlaNXuTfS4kqk0B5dems OD1/X5oyzTyG5SzlXqTQYS3hYY5mTq7lKSQ/UhjmKnujjrjReG219Lob+kuBlVWHA5px3uSHxIQnV rrzUM3+BPfBekRXREnVCYzdwlCpSIJLFHrP0AgVLHqp2Nx2t0BWKKLhF3999NaTBaeBZuNn6NLxe/ /TuPmrjw==; Received: from [187.192.11.120] (port=39596 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.92) (envelope-from ) id 1hrt1T-003lh5-Dr; Sun, 28 Jul 2019 18:56:15 -0500 Date: Sun, 28 Jul 2019 18:56:14 -0500 From: "Gustavo A. R. Silva" To: Linus Walleij , Lee Jones Subject: [PATCH] mfd: db8500-prcmu: Mark expected switch fall-throughs Message-ID: <20190728235614.GA23618@embeddedor> MIME-Version: 1.0 Content-Disposition: inline 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 - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.192.11.120 X-Source-L: No X-Exim-ID: 1hrt1T-003lh5-Dr X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [187.192.11.120]:39596 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 51 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190728_165617_514150_E0778C8F X-CRM114-Status: UNSURE ( 4.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kees Cook , Stephen Rothwell , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Gustavo A. R. Silva" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/mfd/db8500-prcmu.c: In function 'dsiclk_rate': drivers/mfd/db8500-prcmu.c:1592:7: warning: this statement may fall through [-Wimplicit-fallthrough=] div *= 2; ~~~~^~~~ drivers/mfd/db8500-prcmu.c:1593:2: note: here case PRCM_DSI_PLLOUT_SEL_PHI_2: ^~~~ drivers/mfd/db8500-prcmu.c:1594:7: warning: this statement may fall through [-Wimplicit-fallthrough=] div *= 2; ~~~~^~~~ drivers/mfd/db8500-prcmu.c:1595:2: note: here case PRCM_DSI_PLLOUT_SEL_PHI: ^~~~ Reported-by: Stephen Rothwell Signed-off-by: Gustavo A. R. Silva Reviewed-by: Kees Cook Reviewed-by: Linus Walleij --- drivers/mfd/db8500-prcmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 3f21e26b8d36..90e0f21bc49c 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -1590,8 +1590,10 @@ static unsigned long dsiclk_rate(u8 n) switch (divsel) { case PRCM_DSI_PLLOUT_SEL_PHI_4: div *= 2; + /* Fall through */ case PRCM_DSI_PLLOUT_SEL_PHI_2: div *= 2; + /* Fall through */ case PRCM_DSI_PLLOUT_SEL_PHI: return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), PLL_RAW) / div;