]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c7735947fc83dc7340f127647f5d1a8f7285a20
tree95b58a023b266ce23a1dd907385e801827542263
parent9135fde2d1250376fa439881f543ede6c3735bab
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