KVM: x86: Force KVM_WERROR if the global WERROR is enabled
authorSean Christopherson <seanjc@google.com>
Fri, 17 May 2024 18:03:41 +0000 (11:03 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 May 2024 16:33:31 +0000 (12:33 -0400)
commit76d5363c20eeeb937b56c0ac6c61e697bd1bf154
tree3a216a82d145d2eac5cc8f05320553331cc2e3de
parent6af6142e3a62efd6074905e4a94d64956a3f4b7c
KVM: x86: Force KVM_WERROR if the global WERROR is enabled

Force KVM_WERROR if the global WERROR is enabled to avoid pestering the
user about a Kconfig that will ultimately be ignored.  Force KVM_WERROR
instead of making it mutually exclusive with WERROR to avoid generating a
.config builds KVM with -Werror, but has KVM_WERROR=n.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20240517180341.974251-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Kconfig