2019-04-30 00:20:50

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the clk tree

Hi all,

After merging the clk tree, today's linux-next build (arm
multi_v7_defconfig) produced this 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:
^~~~

Introduced by commit

01d0a541ff4b ("clk: imx: correct i.MX7D AV PLL num/denom offset")

I get this warning because I am building with -Wimplicit-fallthrough
in attempt to catch new additions early. The gcc warning can be turned
off by adding a /* fall through */ comment at the point the fall through
happens (assuming that the fall through is intentional).

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2019-04-30 01:46:17

by Anson Huang

[permalink] [raw]
Subject: RE: linux-next: build warning after merge of the clk tree

Hi, Stephen
Thanks for notice.
As it is intentional, I will send out a patch to add "/* fall through */" to avoid this build warning,

Anson.

> -----Original Message-----
> From: Stephen Rothwell [mailto:[email protected]]
> Sent: Tuesday, April 30, 2019 8:20 AM
> To: Mike Turquette <[email protected]>; Stephen Boyd
> <[email protected]>
> Cc: Linux Next Mailing List <[email protected]>; Linux Kernel Mailing
> List <[email protected]>; Anson Huang <[email protected]>;
> Gustavo A. R. Silva <[email protected]>; Kees Cook
> <[email protected]>
> Subject: linux-next: build warning after merge of the clk tree
>
> Hi all,
>
> After merging the clk tree, today's linux-next build (arm
> multi_v7_defconfig) produced this 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:
> ^~~~
>
> Introduced by commit
>
> 01d0a541ff4b ("clk: imx: correct i.MX7D AV PLL num/denom offset")
>
> I get this warning because I am building with -Wimplicit-fallthrough in
> attempt to catch new additions early. The gcc warning can be turned off by
> adding a /* fall through */ comment at the point the fall through happens
> (assuming that the fall through is intentional).
>
> --
> Cheers,
> Stephen Rothwell

2019-04-30 05:58:23

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the clk tree

Hi Anson,

On Tue, 30 Apr 2019 01:44:58 +0000 Anson Huang <[email protected]> wrote:
>
> Thanks for notice.
> As it is intentional, I will send out a patch to add "/* fall through */" to avoid this build warning,

Excellent, thanks.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature