]> 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)
commit462c1d3b0d0dcf384368694fd5940c160a1c8699
tree95b58a023b266ce23a1dd907385e801827542263
parent8a532c864532a64a0be655bd6c50bcd90cfbac28
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