From: "tip-bot2 for Thomas Weißschuh" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: thomas.weissschuh@linutronix.de,
Thomas Gleixner <tglx@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/vdso] arm64/vdso: Directly include the generic vDSO implementations
Date: Sun, 06 Dec 2026 11:07:24 -0000 [thread overview]
Message-ID: <179655524424.2286038.8909437390835107967.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20261204-vdso-generic-include-v1-2-8f4ed31bfbbd@linutronix.de>
The following commit has been merged into the timers/vdso branch of tip:
Commit-ID: 9cffbb66355775c9952b6cded16317977bf38fba
Gitweb: https://git.kernel.org/tip/9cffbb66355775c9952b6cded16317977bf38fba
Author: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
AuthorDate: Fri, 04 Dec 2026 08:30:29 +01:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Sun, 06 Dec 2026 12:03:02 +01:00
arm64/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@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20261204-vdso-generic-include-v1-2-8f4ed31bfbbd@linutronix.de
---
arch/arm64/kernel/vdso/Makefile | 8 --------
arch/arm64/kernel/vdso/vgetrandom.c | 2 ++
arch/arm64/kernel/vdso/vgettimeofday.c | 2 ++
arch/arm64/kernel/vdso32/Makefile | 4 ----
arch/arm64/kernel/vdso32/vgettimeofday.c | 2 ++
5 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile
index f6619e1..b119f08 100644
--- a/arch/arm64/kernel/vdso/Makefile
+++ b/arch/arm64/kernel/vdso/Makefile
@@ -49,14 +49,6 @@ CFLAGS_REMOVE_vgetrandom.o = $(CC_FLAGS_REMOVE_VDSO)
CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)
CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)
-ifneq ($(c-gettimeofday-y),)
- CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)
-endif
-
-ifneq ($(c-getrandom-y),)
- CFLAGS_vgetrandom.o += -include $(c-getrandom-y)
-endif
-
targets += vdso.lds
CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
diff --git a/arch/arm64/kernel/vdso/vgetrandom.c b/arch/arm64/kernel/vdso/vgetrandom.c
index 832fe19..e77f45e 100644
--- a/arch/arm64/kernel/vdso/vgetrandom.c
+++ b/arch/arm64/kernel/vdso/vgetrandom.c
@@ -2,6 +2,8 @@
#include <uapi/asm-generic/errno.h>
+#include "../../../../lib/vdso/getrandom.c"
+
typeof(__cvdso_getrandom) __kernel_getrandom;
ssize_t __kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len)
diff --git a/arch/arm64/kernel/vdso/vgettimeofday.c b/arch/arm64/kernel/vdso/vgettimeofday.c
index 9941c5b..090e6a4 100644
--- a/arch/arm64/kernel/vdso/vgettimeofday.c
+++ b/arch/arm64/kernel/vdso/vgettimeofday.c
@@ -6,6 +6,8 @@
*
*/
+#include "../../../../lib/vdso/gettimeofday.c"
+
int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
int __kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
int __kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile
index 00efdc5..f521d5e 100644
--- a/arch/arm64/kernel/vdso32/Makefile
+++ b/arch/arm64/kernel/vdso32/Makefile
@@ -95,10 +95,6 @@ hostprogs := $(munge)
c-obj-vdso := note.o
c-obj-vdso-gettimeofday := vgettimeofday.o
-ifneq ($(c-gettimeofday-y),)
-VDSO_CFLAGS_gettimeofday_o += -include $(c-gettimeofday-y)
-endif
-
VDSO_CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os
# Build rules
diff --git a/arch/arm64/kernel/vdso32/vgettimeofday.c b/arch/arm64/kernel/vdso32/vgettimeofday.c
index 12d0255..1e3f141 100644
--- a/arch/arm64/kernel/vdso32/vgettimeofday.c
+++ b/arch/arm64/kernel/vdso32/vgettimeofday.c
@@ -8,6 +8,8 @@
#define BUILD_VDSO32_64
#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)
next prev parent reply other threads:[~2026-12-06 11:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 7:30 [PATCH 0/9] vdso: " Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 1/9] csky/vdso: Remove all gettimeofday() remnants Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 2/9] arm64/vdso: Directly include the generic vDSO implementations Thomas Weißschuh
2026-12-06 11:07 ` tip-bot2 for Thomas Weißschuh [this message]
2026-12-04 7:30 ` [PATCH 3/9] ARM: vdso: " Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 4/9] LoongArch: vDSO: " Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 5/9] powerpc/vdso: " Thomas Weißschuh
2026-12-04 10:28 ` Christophe Leroy (CS GROUP)
2026-12-04 13:44 ` Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 6/9] MIPS: VDSO: " Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 7/9] riscv: vdso: " Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 8/9] s390/vdso: " Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-12-04 7:30 ` [PATCH 9/9] vdso: Drop the old inclusion machinery Thomas Weißschuh
2026-12-06 11:07 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179655524424.2286038.8909437390835107967.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=tglx@kernel.org \
--cc=thomas.weissschuh@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®