KVM: selftests: Add CONFIG_64BIT definition for the build
authorHaibo Xu <haibo1.xu@intel.com>
Mon, 22 Jan 2024 09:58:35 +0000 (17:58 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 26 Feb 2024 04:44:00 +0000 (10:14 +0530)
Since only 64bit KVM selftests were supported on all architectures,
add the CONFIG_64BIT definition in kvm/Makefile to ensure only 64bit
definitions were available in the corresponding included files.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/Makefile

index 78960fe74480d26da7cf110d48654745cf91ca46..63592045720f45e36385522c6e8f97310c26e773 100644 (file)
@@ -218,7 +218,7 @@ else
 LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include
 endif
 CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 \
-       -Wno-gnu-variable-sized-type-not-at-end -MD -MP \
+       -Wno-gnu-variable-sized-type-not-at-end -MD -MP -DCONFIG_64BIT \
        -fno-builtin-memcmp -fno-builtin-memcpy -fno-builtin-memset \
        -fno-builtin-strnlen \
        -fno-stack-protector -fno-PIE -I$(LINUX_TOOL_INCLUDE) \