KVM: x86: replace static const variables with macros
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Oct 2020 17:39:55 +0000 (13:39 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Oct 2020 17:39:55 +0000 (13:39 -0400)
commit8a967d655e406c8a63744a60b221071fad9a736b
tree95b58a023b266ce23a1dd907385e801827542263
parent699116c45e155925638677a74625ac9e9e046dc1
KVM: x86: replace static const variables with macros

Even though the compiler is able to replace static const variables with
their value, it will warn about them being unused when Linux is built with W=1.
Use good old macros instead, this is not C++.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/mmu/spte.h