[PATCH v4 05/25] arm64: vdso: Define ARM64_S390_COMMON=1 for all vdso builds

Steffen Eiden seiden at linux.ibm.com
Fri Nov 27 06:22:08 PST 2026


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 at linux.ibm.com>
---
 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




More information about the linux-arm-kernel mailing list