Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1322225 > unrolled thread

Re: [PATCH] clk: st: avoid uninitialized variable use

Started byStephen Boyd <sboyd@codeaurora.org>
First post2016-01-30 02:30 +0100
Last post2016-01-30 02:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] clk: st: avoid uninitialized variable use Stephen Boyd <sboyd@codeaurora.org> - 2016-01-30 02:30 +0100

#1322225 — Re: [PATCH] clk: st: avoid uninitialized variable use

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-01-30 02:30 +0100
SubjectRe: [PATCH] clk: st: avoid uninitialized variable use
Message-ID<qWswq-3pn-3@gated-at.bofh.it>
On 01/25, Arnd Bergmann wrote:
> My previous patch fixed some warnings about printing a couple
> of variables that are always uninitialized in quadfs_pll_fs660c32_set_rate(),
> but I now got a warning that only shows up in some configurations (i.e.
> without gcc -Os) about the params.ndiv being used uninitialized in the
> error case:
> 
> drivers/clk/st/clkgen-fsyn.c: In function 'quadfs_pll_fs660c32_set_rate':
> drivers/clk/st/clkgen-fsyn.c:584:75: warning: 'params.ndiv' may be used uninitialized in this function [-Wmaybe-uninitialized]
> drivers/clk/st/clkgen-fsyn.c:574:16: note: 'params.ndiv' was declared here
> 
> This changes the error handling so we bail for invalid arguments rather
> than continuing with uninitialized data.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web