aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/fixdep.c
diff options
context:
space:
mode:
authorValdis KlÄ“tnieks <[email protected]>2020-02-28 02:49:52 +0000
committerPaolo Bonzini <[email protected]>2020-02-28 09:35:37 +0000
commit575b255c1663c8fccc41fe965dcac281e3113c65 (patch)
treefc4937fbd94f1376803b0847ec16816ad05333f3 /scripts/basic/fixdep.c
parentKVM: Pre-allocate 1 cpumask variable per cpu for both pv tlb and pv ipis (diff)
downloadkernel-575b255c1663c8fccc41fe965dcac281e3113c65.tar.gz
kernel-575b255c1663c8fccc41fe965dcac281e3113c65.zip
KVM: x86: allow compiling as non-module with W=1
Compile error with CONFIG_KVM_INTEL=y and W=1: CC arch/x86/kvm/vmx/vmx.o arch/x86/kvm/vmx/vmx.c:68:32: error: 'vmx_cpu_id' defined but not used [-Werror=unused-const-variable=] 68 | static const struct x86_cpu_id vmx_cpu_id[] = { | ^~~~~~~~~~ cc1: all warnings being treated as errors When building with =y, the MODULE_DEVICE_TABLE macro doesn't generate a reference to the structure (or any code at all). This makes W=1 compiles unhappy. Wrap both in a #ifdef to avoid the issue. Signed-off-by: Valdis Kletnieks <[email protected]> [Do the same for CONFIG_KVM_AMD. - Paolo] Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions