Re: [PATCH] x86: kvm: hide the unused 'cpu' variable

2018-04-04 Thread Paolo Bonzini
On 04/04/2018 13:51, David Hildenbrand wrote: > On 04.04.2018 12:44, Arnd Bergmann wrote: >> The local variable was newly introduced but is only accessed in one >> place on x86_64, but not on 32-bit: >> >> arch/x86/kvm/vmx.c: In function 'vmx_save_host_state': >> arch/x86/kvm/vmx.c:2175:6: error: u

Re: [PATCH] x86: kvm: hide the unused 'cpu' variable

2018-04-04 Thread David Hildenbrand
On 04.04.2018 12:44, Arnd Bergmann wrote: > The local variable was newly introduced but is only accessed in one > place on x86_64, but not on 32-bit: > > arch/x86/kvm/vmx.c: In function 'vmx_save_host_state': > arch/x86/kvm/vmx.c:2175:6: error: unused variable 'cpu' > [-Werror=unused-variable] >

[PATCH] x86: kvm: hide the unused 'cpu' variable

2018-04-04 Thread Arnd Bergmann
The local variable was newly introduced but is only accessed in one place on x86_64, but not on 32-bit: arch/x86/kvm/vmx.c: In function 'vmx_save_host_state': arch/x86/kvm/vmx.c:2175:6: error: unused variable 'cpu' [-Werror=unused-variable] This puts it into another #ifdef. Fixes: 35060ed6a1ff