]> Git Repo - linux.git/commitdiff
x86/kvm: hide KVM options from menuconfig when KVM is not compiled
authorMatteo Croce <[email protected]>
Thu, 1 Oct 2020 11:20:14 +0000 (13:20 +0200)
committerPaolo Bonzini <[email protected]>
Wed, 21 Oct 2020 21:36:30 +0000 (17:36 -0400)
Let KVM_WERROR depend on KVM, so it doesn't show in menuconfig alone.

Signed-off-by: Matteo Croce <[email protected]>
Message-Id: <20201001112014[email protected]>
Fixes: 4f337faf1c55e ("KVM: allow disabling -Werror")
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/Kconfig

index fbd5bd7a945afdaf809508d0785e1dbd8af58050..f92dfd8ef10dbca080c0cf21a3bc45792cab4bea 100644 (file)
@@ -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
This page took 0.044969 seconds and 4 git commands to generate.