Re: [PATCH] x86: kvm: avoid unused variable warning

2018-08-22 Thread David Hildenbrand
On 20.08.2018 23:37, Arnd Bergmann wrote: > Removing one of the two accesses of the maxphyaddr variable led to > a harmless warning: > > arch/x86/kvm/x86.c: In function 'kvm_set_mmio_spte_mask': > arch/x86/kvm/x86.c:6563:6: error: unused variable 'maxphyaddr' > [-Werror=unused-variable] > > Remo

Re: [PATCH] x86: kvm: avoid unused variable warning

2018-08-21 Thread Paolo Bonzini
On 20/08/2018 23:37, Arnd Bergmann wrote: > Removing one of the two accesses of the maxphyaddr variable led to > a harmless warning: > > arch/x86/kvm/x86.c: In function 'kvm_set_mmio_spte_mask': > arch/x86/kvm/x86.c:6563:6: error: unused variable 'maxphyaddr' > [-Werror=unused-variable] > > Remo

[PATCH] x86: kvm: avoid unused variable warning

2018-08-20 Thread Arnd Bergmann
Removing one of the two accesses of the maxphyaddr variable led to a harmless warning: arch/x86/kvm/x86.c: In function 'kvm_set_mmio_spte_mask': arch/x86/kvm/x86.c:6563:6: error: unused variable 'maxphyaddr' [-Werror=unused-variable] Removing the #ifdef seems to be the nicest workaround, as it m