Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4994141yba; Tue, 30 Apr 2019 07:33:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGs3gFuBjMIsU1EEL8NdTCIYXpQL5Y4jRWqFsMh2Qo3L1hmCQasupr+6iYwAbqi7dXXiQA X-Received: by 2002:a17:902:e091:: with SMTP id cb17mr68783272plb.222.1556634807081; Tue, 30 Apr 2019 07:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556634807; cv=none; d=google.com; s=arc-20160816; b=NU7u/D26RjGnX/jKQYgnWBZqCfbuRSKi9a8e9l0uJ1WWwUUW+EiZBgkNHbAp/NCVde fXcGCQxLiACI281MBku+iaAbgxfZO8FSw+u61Dm0VkCyC11I9ICw50zq5N58LAn7Dj5g BU0WrNcOlbyDpxaMowNJqoQaVzge4QqX+zaTTu8mmVRG4IPz4qxJap8LTnMvuOynGrVc BN9kiJtSwTUl1YvKJN9yr7YpTC/P+IkVZ/FcrnpKfp6iV5Cpvdys0CN4bkg4VYqcl639 3iRyM2vVbfPJt8EBCUeKj5N+rJp4qer//RQP8y1tBr16fK2BijMH7Vot9SD1852lHlkv BCzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=n54QHldvU1tbVsZW3DMZuLju3rOcsIq4y1KlZbN4V00=; b=AH3AYyPXhejt6FQzsWj4FTRcY4u6iYxj1lzAehrcex8l2NYAS63Jk50/knNVAQ0k8z NgjG5QgaaOEiE6jSkGdC8vuk5D5NQKVZl5c/4p8QCMVxdC3woZYqZ6vubc01abJRbfQQ aEV6B/JoCMp4GUlEk4RKNY99q+msdcPRwlZIjmKMCjmFORD0OBFYBOK9m/6uKa80n1zP UoVRqhywZqcdtD7sZguspS/acd09uJ/seEN9cNUVmIZm1O3J/UiWFYyZRbNxR6Se6tV6 4pOpuOTLMpNrUxWKXjHi0/kDvPBwr93nb3FRHVnLXBoWP+KaJjvSriZHB+W5Lf9uzprB Nz2A== 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 q25si34201096pgv.534.2019.04.30.07.33.09; Tue, 30 Apr 2019 07:33:27 -0700 (PDT) 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 S1727265AbfD3OcK (ORCPT + 99 others); Tue, 30 Apr 2019 10:32:10 -0400 Received: from gateway22.websitewelcome.com ([192.185.46.152]:14299 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbfD3OcJ (ORCPT ); Tue, 30 Apr 2019 10:32:09 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway22.websitewelcome.com (Postfix) with ESMTP id BF0BF553F for ; Tue, 30 Apr 2019 09:32:07 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id LTnjhMl0jYTGMLTnjhRfpK; Tue, 30 Apr 2019 09:32:07 -0500 X-Authority-Reason: nr=8 Received: from [189.250.119.203] (port=51452 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1hLTni-001KJq-JX; Tue, 30 Apr 2019 09:32:06 -0500 Date: Tue, 30 Apr 2019 09:32:06 -0500 From: "Gustavo A. R. Silva" To: Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] clk: imx: clk-pllv3: mark expected switch fall-throughs Message-ID: <20190430143206.GA4035@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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.119.203 X-Source-L: No X-Exim-ID: 1hLTni-001KJq-JX X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.119.203]:51452 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 10 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. This patch fixes the following warnings: drivers/clk/imx/clk-pllv3.c: In function ‘imx_clk_pllv3’: drivers/clk/imx/clk-pllv3.c:446:18: warning: this statement may fall through [-Wimplicit-fallthrough=] pll->div_shift = 1; ~~~~~~~~~~~~~~~^~~ drivers/clk/imx/clk-pllv3.c:447:2: note: here case IMX_PLLV3_USB: ^~~~ drivers/clk/imx/clk-pllv3.c:453:21: warning: this statement may fall through [-Wimplicit-fallthrough=] pll->denom_offset = PLL_IMX7_DENOM_OFFSET; ^ drivers/clk/imx/clk-pllv3.c:454:2: note: here case IMX_PLLV3_AV: ^~~~ Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva --- drivers/clk/imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index e892b9a836e5..4110e713d259 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c @@ -444,6 +444,7 @@ struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name, break; case IMX_PLLV3_USB_VF610: pll->div_shift = 1; + /* fall through */ case IMX_PLLV3_USB: ops = &clk_pllv3_ops; pll->powerup_set = true; @@ -451,6 +452,7 @@ struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name, case IMX_PLLV3_AV_IMX7: pll->num_offset = PLL_IMX7_NUM_OFFSET; pll->denom_offset = PLL_IMX7_DENOM_OFFSET; + /* fall through */ case IMX_PLLV3_AV: ops = &clk_pllv3_av_ops; break; -- 2.21.0