Re: [PATCH] arm64: percpu: Initialize ret in the default case

2018-09-25 Thread Dennis Zhou
Hi Nick, On Tue, Sep 25, 2018 at 01:24:06PM -0700, Nick Desaulniers wrote: > On Tue, Sep 25, 2018 at 12:45 PM Nathan Chancellor > wrote: > > > > Clang warns that if the default case is taken, ret will be > > uninitialized. > > > > ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' i

Re: [PATCH] arm64: percpu: Initialize ret in the default case

2018-09-25 Thread Dennis Zhou
Hi Nathan, On Tue, Sep 25, 2018 at 12:44:59PM -0700, Nathan Chancellor wrote: > Clang warns that if the default case is taken, ret will be > uninitialized. > > ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used > uninitialized whenever switch default is taken > [-Wsometimes-

Re: [PATCH] arm64: percpu: Initialize ret in the default case

2018-09-25 Thread Nick Desaulniers
On Tue, Sep 25, 2018 at 1:24 PM Nick Desaulniers wrote: > > On Tue, Sep 25, 2018 at 12:45 PM Nathan Chancellor > wrote: > > > > Clang warns that if the default case is taken, ret will be > > uninitialized. > > > > ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used > > uninit

Re: [PATCH] arm64: percpu: Initialize ret in the default case

2018-09-25 Thread Nick Desaulniers
On Tue, Sep 25, 2018 at 12:45 PM Nathan Chancellor wrote: > > Clang warns that if the default case is taken, ret will be > uninitialized. > > ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used > uninitialized whenever switch default is taken > [-Wsometimes-uninitialized] >

[PATCH] arm64: percpu: Initialize ret in the default case

2018-09-25 Thread Nathan Chancellor
Clang warns that if the default case is taken, ret will be uninitialized. ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~ ./arch/arm64/include/asm/percpu.h:200:9: no