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

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_property':

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=nextid=4469b99743d296e24aefc5f8ed7df1bc9cfbbac8 > > Though, as not as elegant as your patch, it does

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

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

2013-04-25 Thread Arnd Bergmann
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_property': drivers/thermal/cpu_cooling.c:189:37: warning: 'level' may

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

2013-04-25 Thread Arnd Bergmann
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_property': drivers/thermal/cpu_cooling.c:189:37: warning: 'level' may be

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 a...@arndb.de 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

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=nextamp;id=4469b99743d296e24aefc5f8ed7df1bc9cfbbac8 Though, as not as elegant as your patch, it does