Re: [PATCH 15/21] thermal: cooling: avoid uninitialied used gcc warning

2013-04-26 Thread Zhang Rui
On Thu, 2013-04-25 at 19:28 +0200, Arnd Bergmann wrote: > The newly rewritten get_property() function causes a bogus warning > from gcc-3.8, which cannot figure out that "level" is always > initialized at the point where it gets evaluated: > > drivers/thermal/cpu_cooling.c: In function 'get_proper

Re: [PATCH 15/21] thermal: cooling: avoid uninitialied used gcc warning

2013-04-25 Thread Arnd Bergmann
On Thursday 25 April 2013, edubez...@gmail.com wrote: > Rui has merged a patch that removes this bogus compiler warning: > http://git.kernel.org/cgit/linux/kernel/git/rzhang/linux.git/commit/?h=next&id=4469b99743d296e24aefc5f8ed7df1bc9cfbbac8 > > Though, as not as elegant as your patch, it does th

Re: [PATCH 15/21] thermal: cooling: avoid uninitialied used gcc warning

2013-04-25 Thread edubez...@gmail.com
Arnd, On Thu, Apr 25, 2013 at 1:28 PM, Arnd Bergmann wrote: > The newly rewritten get_property() function causes a bogus warning > from gcc-3.8, which cannot figure out that "level" is always > initialized at the point where it gets evaluated: > > drivers/thermal/cpu_cooling.c: In function 'get_p