diff options
author | Matteo Croce <mcroce@microsoft.com> | 2020-10-01 13:20:14 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-21 17:36:30 -0400 |
commit | 8f116a6c7320ce55e8e0885b79ff3518105775b5 (patch) | |
tree | 52d9bf3f1f2984d23cf42419e0f183b505392a69 /arch/x86/kvm/Kconfig | |
parent | 10f79ccaf3d767ecf724b5e04b077d28cbcbef57 (diff) | |
download | linux-8f116a6c7320ce55e8e0885b79ff3518105775b5.tar.gz linux-8f116a6c7320ce55e8e0885b79ff3518105775b5.tar.bz2 linux-8f116a6c7320ce55e8e0885b79ff3518105775b5.zip |
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 <mcroce@microsoft.com>
Message-Id: <20201001112014.9561-1-mcroce@linux.microsoft.com>
Fixes: 4f337faf1c55e ("KVM: allow disabling -Werror")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/Kconfig')
-rw-r--r-- | arch/x86/kvm/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index fbd5bd7a945a..f92dfd8ef10d 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 |