Re: [PATCH] [v3] x86: kvm: avoid -Wsometimes-uninitized warning

2019-07-12 Thread Paolo Bonzini
On 12/07/19 16:13, Arnd Bergmann wrote: > Clang notices a code path in which some variables are never > initialized, but fails to figure out that this can never happen > on i386 because is_64_bit_mode() always returns false. > > arch/x86/kvm/hyperv.c:1610:6: error: variable 'ingpa' is used

Re: [PATCH] [v3] x86: kvm: avoid -Wsometimes-uninitized warning

2019-07-12 Thread Nathan Chancellor
On Fri, Jul 12, 2019 at 04:13:09PM +0200, Arnd Bergmann wrote: > Clang notices a code path in which some variables are never > initialized, but fails to figure out that this can never happen > on i386 because is_64_bit_mode() always returns false. > > arch/x86/kvm/hyperv.c:1610:6: error: variable

Re: [PATCH] [v3] x86: kvm: avoid -Wsometimes-uninitized warning

2019-07-12 Thread Roman Kagan
On Fri, Jul 12, 2019 at 04:13:09PM +0200, Arnd Bergmann wrote: > Clang notices a code path in which some variables are never > initialized, but fails to figure out that this can never happen > on i386 because is_64_bit_mode() always returns false. > > arch/x86/kvm/hyperv.c:1610:6: error: variable

[PATCH] [v3] x86: kvm: avoid -Wsometimes-uninitized warning

2019-07-12 Thread Arnd Bergmann
Clang notices a code path in which some variables are never initialized, but fails to figure out that this can never happen on i386 because is_64_bit_mode() always returns false. arch/x86/kvm/hyperv.c:1610:6: error: variable 'ingpa' is used uninitialized whenever 'if' condition is false