From: Matteo Croce Date: Thu, 1 Oct 2020 11:20:14 +0000 (+0200) Subject: x86/kvm: hide KVM options from menuconfig when KVM is not compiled X-Git-Tag: v5.10-rc1~44^2~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f116a6c7320ce55e8e0885b79ff3518105775b5;p=thirdparty%2Fkernel%2Flinux.git x86/kvm: hide KVM options from menuconfig when KVM is not compiled Let KVM_WERROR depend on KVM, so it doesn't show in menuconfig alone. Signed-off-by: Matteo Croce Message-Id: <20201001112014.9561-1-mcroce@linux.microsoft.com> Fixes: 4f337faf1c55e ("KVM: allow disabling -Werror") Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index fbd5bd7a945af..f92dfd8ef10db 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -66,6 +66,7 @@ config KVM_WERROR default y if X86_64 && !KASAN # We use the dependency on !COMPILE_TEST to not be enabled # blindly in allmodconfig or allyesconfig configurations + depends on KVM depends on (X86_64 && !KASAN) || !COMPILE_TEST depends on EXPERT help