[tip: timers/vdso] ARM: vdso: Directly include the generic vDSO implementations

From: tip-bot2 for Thomas Weißschuh

Date: Sun Dec 06 2026 - 06:07:54 EST


The following commit has been merged into the timers/vdso branch of tip:

Commit-ID: 47d5c304ab3f2e4fbf0a03c22ec487697bde848d
Gitweb: https://git.kernel.org/tip/47d5c304ab3f2e4fbf0a03c22ec487697bde848d
Author: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Fri, 04 Dec 2026 08:30:30 +01:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Sun, 06 Dec 2026 12:03:02 +01:00

ARM: vdso: Directly include the generic vDSO implementations

The inclusion of the generic vDSO implementation through compiler
arguments is complicated and non-obvious.

Directly include the .c files instead.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20261204-vdso-generic-include-v1-3-8f4ed31bfbbd@xxxxxxxxxxxxx
---
arch/arm/vdso/Makefile | 4 ----
arch/arm/vdso/vgettimeofday.c | 2 ++
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
index cf8cd39..c1dc650 100644
--- a/arch/arm/vdso/Makefile
+++ b/arch/arm/vdso/Makefile
@@ -27,11 +27,7 @@ CFLAGS_REMOVE_vdso.o = -pg

# Force -O2 to avoid libgcc dependencies
CFLAGS_REMOVE_vgettimeofday.o = -pg -Os $(RANDSTRUCT_CFLAGS) $(KSTACK_ERASE_CFLAGS) $(GCC_PLUGINS_CFLAGS)
-ifeq ($(c-gettimeofday-y),)
CFLAGS_vgettimeofday.o = -O2
-else
-CFLAGS_vgettimeofday.o = -O2 -include $(c-gettimeofday-y)
-endif

# Force dependency
$(obj)/vdso.o : $(obj)/vdso.so
diff --git a/arch/arm/vdso/vgettimeofday.c b/arch/arm/vdso/vgettimeofday.c
index 3eebedd..610f093 100644
--- a/arch/arm/vdso/vgettimeofday.c
+++ b/arch/arm/vdso/vgettimeofday.c
@@ -10,6 +10,8 @@
#include <asm/unwind.h>
#include <vdso/gettime.h>

+#include "../../../lib/vdso/gettimeofday.c"
+
#ifdef CONFIG_COMPAT_32BIT_TIME
int __vdso_clock_gettime(clockid_t clock,
struct old_timespec32 *ts)