* [PATCH] clk: imx: pllv3: Fix fall through build warning
@ 2019-04-30 1:55 Anson Huang
2019-04-30 3:01 ` Aisheng Dong
2019-04-30 18:16 ` Stephen Boyd
0 siblings, 2 replies; 5+ messages in thread
From: Anson Huang @ 2019-04-30 1:55 UTC (permalink / raw)
To: mturquette, sboyd, shawnguo, s.hauer, kernel, festevam,
linux-clk, linux-arm-kernel, linux-kernel
Cc: dl-linux-imx
Fix below fall through build warning:
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:
^~~~
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/clk-pllv3.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c
index e892b9a..fbe4fe0 100644
--- a/drivers/clk/imx/clk-pllv3.c
+++ b/drivers/clk/imx/clk-pllv3.c
@@ -451,6 +451,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.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH] clk: imx: pllv3: Fix fall through build warning
2019-04-30 1:55 [PATCH] clk: imx: pllv3: Fix fall through build warning Anson Huang
@ 2019-04-30 3:01 ` Aisheng Dong
2019-04-30 18:16 ` Stephen Boyd
1 sibling, 0 replies; 5+ messages in thread
From: Aisheng Dong @ 2019-04-30 3:01 UTC (permalink / raw)
To: Anson Huang, mturquette, sboyd, shawnguo, s.hauer, kernel,
festevam, linux-clk, linux-arm-kernel, linux-kernel
Cc: dl-linux-imx
> From: Anson Huang
> Sent: Tuesday, April 30, 2019 9:55 AM
> Subject: [PATCH] clk: imx: pllv3: Fix fall through build warning
>
> Fix below fall through build warning:
>
> 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:
> ^~~~
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Regards
Dong Aisheng
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: imx: pllv3: Fix fall through build warning
2019-04-30 1:55 [PATCH] clk: imx: pllv3: Fix fall through build warning Anson Huang
2019-04-30 3:01 ` Aisheng Dong
@ 2019-04-30 18:16 ` Stephen Boyd
2019-05-01 9:33 ` Anson Huang
1 sibling, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2019-04-30 18:16 UTC (permalink / raw)
To: festevam, kernel, linux-arm-kernel, linux-clk, linux-kernel,
mturquette, s.hauer, shawnguo, Anson Huang, Gustavo A. R. Silva
Cc: dl-linux-imx
Quoting Anson Huang (2019-04-29 18:55:18)
> Fix below fall through build warning:
>
> 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:
> ^~~~
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
Gustavo says there are two warnings. Please compile test with the right
options, add Reported-by tags when you get bug reports from someone, and
add a Fixes tag and then resend.
> drivers/clk/imx/clk-pllv3.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c
> index e892b9a..fbe4fe0 100644
> --- a/drivers/clk/imx/clk-pllv3.c
> +++ b/drivers/clk/imx/clk-pllv3.c
> @@ -451,6 +451,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;
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] clk: imx: pllv3: Fix fall through build warning
2019-04-30 18:16 ` Stephen Boyd
@ 2019-05-01 9:33 ` Anson Huang
2019-05-01 17:03 ` Stephen Boyd
0 siblings, 1 reply; 5+ messages in thread
From: Anson Huang @ 2019-05-01 9:33 UTC (permalink / raw)
To: Stephen Boyd, festevam, kernel, linux-arm-kernel, linux-clk,
linux-kernel, mturquette, s.hauer, shawnguo, Gustavo A. R. Silva
Cc: dl-linux-imx
Hi, Stephen
I saw Gustavo already sent out a patch to fix these two warnings, so I will NOT sent the patch again, thanks.
> -----Original Message-----
> From: Stephen Boyd [mailto:sboyd@kernel.org]
> Sent: Wednesday, May 1, 2019 2:17 AM
> To: festevam@gmail.com; kernel@pengutronix.de; linux-arm-
> kernel@lists.infradead.org; linux-clk@vger.kernel.org; linux-
> kernel@vger.kernel.org; mturquette@baylibre.com;
> s.hauer@pengutronix.de; shawnguo@kernel.org; Anson Huang
> <anson.huang@nxp.com>; Gustavo A. R. Silva <gustavo@embeddedor.com>
> Cc: dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH] clk: imx: pllv3: Fix fall through build warning
>
> Quoting Anson Huang (2019-04-29 18:55:18)
> > Fix below fall through build warning:
> >
> > 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:
> > ^~~~
> >
> > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > ---
>
> Gustavo says there are two warnings. Please compile test with the right
> options, add Reported-by tags when you get bug reports from someone, and
> add a Fixes tag and then resend.
>
> > drivers/clk/imx/clk-pllv3.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c
> > index e892b9a..fbe4fe0 100644
> > --- a/drivers/clk/imx/clk-pllv3.c
> > +++ b/drivers/clk/imx/clk-pllv3.c
> > @@ -451,6 +451,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;
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] clk: imx: pllv3: Fix fall through build warning
2019-05-01 9:33 ` Anson Huang
@ 2019-05-01 17:03 ` Stephen Boyd
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2019-05-01 17:03 UTC (permalink / raw)
To: Gustavo A. R. Silva, festevam, kernel, linux-arm-kernel,
linux-clk, linux-kernel, mturquette, s.hauer, shawnguo,
Anson Huang
Cc: dl-linux-imx
Quoting Anson Huang (2019-05-01 02:33:46)
> Hi, Stephen
> I saw Gustavo already sent out a patch to fix these two warnings, so I will NOT sent the patch again, thanks.
So I will apply that patch instead? Can you send your reviewed-by tag
then?
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-05-01 17:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-30 1:55 [PATCH] clk: imx: pllv3: Fix fall through build warning Anson Huang
2019-04-30 3:01 ` Aisheng Dong
2019-04-30 18:16 ` Stephen Boyd
2019-05-01 9:33 ` Anson Huang
2019-05-01 17:03 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).