summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/Makefile
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-02-28 10:42:31 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-28 10:45:28 +0100
commit4f337faf1c55e55bdc49df13fcb3a3c45655899e (patch)
tree362de3a83d19657b9bf767c0250b8bcda33803e2 /arch/x86/kvm/Makefile
parent575b255c1663c8fccc41fe965dcac281e3113c65 (diff)
downloadlinux-4f337faf1c55e55bdc49df13fcb3a3c45655899e.tar.gz
KVM: allow disabling -Werror
Restrict -Werror to well-tested configurations and allow disabling it via Kconfig. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/Makefile')
-rw-r--r--arch/x86/kvm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile
index 4654e97a05cc..e553f0fdd87d 100644
--- a/arch/x86/kvm/Makefile
+++ b/arch/x86/kvm/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
ccflags-y += -Iarch/x86/kvm
-ccflags-y += -Werror
+ccflags-$(CONFIG_KVM_WERROR) += -Werror
KVM := ../../../virt/kvm