[PATCH] clk: st: avoid build warnings

Maxime Coquelin maxime.coquelin at st.com
Thu Jun 5 01:47:45 PDT 2014


Hi Arnd,

On 06/04/2014 05:32 PM, Arnd Bergmann wrote:
> This driver prints some variables in debugging output when
> their contents are undefined.
>
> drivers/clk/st/clkgen-fsyn.c: In function 'quadfs_pll_fs660c32_round_rate':
> drivers/clk/st/clkgen-fsyn.c:419:93: warning: 'params.sdiv' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    pr_debug("%s: %s new rate %ld [sdiv=0x%x,md=0x%x,pe=0x%x,nsdiv3=%u]\n",
>                                                                                               ^
> drivers/clk/st/clkgen-fsyn.c:414:16: note: 'params.sdiv' was declared here
>    struct stm_fs params;
>                  ^
>
> This removes them from the output.
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
>

You can add my:
Acked-by: Maxime Coquelin <maxime.coquelin at st.com>

Thanks!
Maxime



More information about the linux-arm-kernel mailing list