[PATCH v4 05/25] arm64: vdso: Define ARM64_S390_COMMON=1 for all vdso builds
From: Steffen Eiden
Date: Fri Nov 27 2026 - 09:26:02 EST
The compat vDSO builds with LINUXINCLUDE but without KBUILD_CPPFLAGS,
where -DARM64_S390_COMMON is defined. Future marker in e,g, asm/cache.h
will hide definitions or break the build at the prepare stage if Werror
& Wundef is defined. Define the marker for the 32-bit vDSO build as
well.
Signed-off-by: Steffen Eiden <seiden@xxxxxxxxxxxxx>
---
arch/arm64/kernel/vdso32/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile
index 00efdc5d2354..880449ea36d3 100644
--- a/arch/arm64/kernel/vdso32/Makefile
+++ b/arch/arm64/kernel/vdso32/Makefile
@@ -33,6 +33,8 @@ cc32-option = $(call try-run,\
VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc
VDSO_CPPFLAGS += -isystem $(shell $(CC_COMPAT) -print-file-name=include 2>/dev/null)
VDSO_CPPFLAGS += $(LINUXINCLUDE)
+# arch/arm64/Makefile puts this in KBUILD_CPPFLAGS, which is not used here
+VDSO_CPPFLAGS += -DARM64_S390_COMMON=1
# Common C and assembly flags
# From top-level Makefile
--
2.56.1