Force preprocessing error instead of expanding BUILD_BUG_ON macro and forcing compile error at later stage. Signed-off-by: Alexey Dobriyan --- arch/x86/include/asm/kvm-x86-ops.h | 2 +- arch/x86/include/asm/kvm-x86-pmu-ops.h | 2 +- arch/x86/kvm/vmx/vmcs_shadow_fields.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) --- a/arch/x86/include/asm/kvm-x86-ops.h +++ b/arch/x86/include/asm/kvm-x86-ops.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #if !defined(KVM_X86_OP) || !defined(KVM_X86_OP_OPTIONAL) -BUILD_BUG_ON(1) +#error #endif /* --- a/arch/x86/include/asm/kvm-x86-pmu-ops.h +++ b/arch/x86/include/asm/kvm-x86-pmu-ops.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #if !defined(KVM_X86_PMU_OP) || !defined(KVM_X86_PMU_OP_OPTIONAL) -BUILD_BUG_ON(1) +#error #endif /* --- a/arch/x86/kvm/vmx/vmcs_shadow_fields.h +++ b/arch/x86/kvm/vmx/vmcs_shadow_fields.h @@ -1,5 +1,5 @@ #if !defined(SHADOW_FIELD_RO) && !defined(SHADOW_FIELD_RW) -BUILD_BUG_ON(1) +#error #endif #ifndef SHADOW_FIELD_RO