Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1322225 > unrolled thread
| Started by | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| First post | 2016-01-30 02:30 +0100 |
| Last post | 2016-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.
Re: [PATCH] clk: st: avoid uninitialized variable use Stephen Boyd <sboyd@codeaurora.org> - 2016-01-30 02:30 +0100
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-01-30 02:30 +0100 |
| Subject | Re: [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
Back to top | Article view | linux.kernel
csiph-web