Re: [PATCH] clk: qoriq: Fix -Wunused-const-variable

From: Scott Wood
Date: Fri Jun 28 2019 - 18:01:41 EST


On Thu, 2019-06-27 at 15:06 -0700, Nathan Huckleberry wrote:
> drivers/clk/clk-qoriq.c:138:38: warning: unused variable
> 'p5020_cmux_grp1' [-Wunused-const-variable] static const struct
> clockgen_muxinfo p5020_cmux_grp1
>
> drivers/clk/clk-qoriq.c:146:38: warning: unused variable
> 'p5020_cmux_grp2' [-Wunused-const-variable] static const struct
> clockgen_muxinfo p5020_cmux_grp2
>
> In the definition of the p5020 chip, the p2041 chip's info was used
> instead. The p5020 and p2041 chips have different info. This is most
> likely a typo.
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/525
> Cc: clang-built-linux@xxxxxxxxxxxxxxxx
> Signed-off-by: Nathan Huckleberry <nhuck@xxxxxxxxxx>

Acked-by: Scott Wood <oss@xxxxxxxxxxxx>

-Scott