Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1463779
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 6/9] clocksource: kona: fix get_counter error handling |
| Date | 2016-08-16 15:20 +0200 |
| Message-ID | <s6MrE-3zL-29@gated-at.bofh.it> (permalink) |
| References | <s4JHz-2k9-9@gated-at.bofh.it> <s4JHA-2k9-45@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/10/2016 11:54 PM, Arnd Bergmann wrote: > I could not figure out why, but gcc cannot prove that the > kona_timer_init function always initializes its two outputs, > and we get a warning for the use of the 'lsw' variable later, > which is obviously correct. > > drivers/clocksource/bcm_kona_timer.c: In function 'kona_timer_init': > drivers/clocksource/bcm_kona_timer.c:119:13: error: 'lsw' may be used uninitialized in this function [-Werror=maybe-uninitialized] > > Slightly reordering the loop makes the warning disappear, after > it becomes more obvious to the compiler that the loop is > always entered on the first iteration. > > As pointed out by Ray Jui, there is a related problem in the > way we deal with the loop running into the limit, as we just > keep going there with an invalid counter data, so instead we > now propagate a -ETIMEDOUT result to the caller. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > Link: https://patchwork.kernel.org/patch/9174261/ Hi Arnd, I applied this patch as a fix. Thanks ! -- Daniel -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/9] v4.8 build regressions Arnd Bergmann <arnd@arndb.de> - 2016-08-11 00:00 +0200
[PATCH 6/9] clocksource: kona: fix get_counter error handling Arnd Bergmann <arnd@arndb.de> - 2016-08-11 00:00 +0200
Re: [PATCH 6/9] clocksource: kona: fix get_counter error handling Ray Jui <ray.jui@broadcom.com> - 2016-08-11 02:10 +0200
Re: [PATCH 6/9] clocksource: kona: fix get_counter error handling Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-08-16 15:20 +0200
Re: [PATCH 0/9] v4.8 build regressions Philipp Zabel <p.zabel@pengutronix.de> - 2016-08-11 08:40 +0200
csiph-web