Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
To: Thomas Gleixner <tglx@kernel.org>,
	Andy Lutomirski <luto@kernel.org>,
	 Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev,
	linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org,
	linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org,
	"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Subject: [PATCH 4/9] LoongArch: vDSO: Directly include the generic vDSO implementations
Date: Fri, 04 Dec 2026 08:30:31 +0100	[thread overview]
Message-ID: <20261204-vdso-generic-include-v1-4-8f4ed31bfbbd@linutronix.de> (raw)
In-Reply-To: <20261204-vdso-generic-include-v1-0-8f4ed31bfbbd@linutronix.de>

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>
---
 arch/loongarch/vdso/Makefile        | 8 --------
 arch/loongarch/vdso/vgetrandom.c    | 2 ++
 arch/loongarch/vdso/vgettimeofday.c | 2 ++
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/loongarch/vdso/Makefile b/arch/loongarch/vdso/Makefile
index 0b84892d084b..7244c6b157a4 100644
--- a/arch/loongarch/vdso/Makefile
+++ b/arch/loongarch/vdso/Makefile
@@ -34,14 +34,6 @@ cflags-vdso := $(ccflags-vdso) \
 aflags-vdso := $(ccflags-vdso) \
 	-D__ASSEMBLY__ -Wa,-gdwarf-2
 
-ifneq ($(c-gettimeofday-y),)
-  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)
-endif
-
-ifneq ($(c-getrandom-y),)
-  CFLAGS_vgetrandom.o += -include $(c-getrandom-y)
-endif
-
 # VDSO linker flags.
 ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \
 	$(filter -E%,$(KBUILD_CFLAGS)) -shared --build-id --eh-frame-hdr -T
diff --git a/arch/loongarch/vdso/vgetrandom.c b/arch/loongarch/vdso/vgetrandom.c
index d5f258ac4a36..e72cdde0b8db 100644
--- a/arch/loongarch/vdso/vgetrandom.c
+++ b/arch/loongarch/vdso/vgetrandom.c
@@ -4,6 +4,8 @@
  */
 #include <linux/types.h>
 
+#include "../../../lib/vdso/getrandom.c"
+
 ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len)
 {
 	return __cvdso_getrandom(buffer, len, flags, opaque_state, opaque_len);
diff --git a/arch/loongarch/vdso/vgettimeofday.c b/arch/loongarch/vdso/vgettimeofday.c
index 0885c1f3a89d..250d188b65af 100644
--- a/arch/loongarch/vdso/vgettimeofday.c
+++ b/arch/loongarch/vdso/vgettimeofday.c
@@ -7,6 +7,8 @@
 #include <linux/types.h>
 #include <vdso/gettime.h>
 
+#include "../../../lib/vdso/gettimeofday.c"
+
 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
 {
 	return __cvdso_clock_gettime(clock, ts);

-- 
2.56.1



  parent reply	other threads:[~2026-12-04  7:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261204-vdso-generic-include-v1-0-8f4ed31bfbbd@linutronix.de>
2026-12-04  7:30 ` [PATCH 1/9] csky/vdso: Remove all gettimeofday() remnants Thomas Weißschuh
2026-12-04  7:30 ` [PATCH 2/9] arm64/vdso: Directly include the generic vDSO implementations Thomas Weißschuh
2026-12-04  7:30 ` [PATCH 3/9] ARM: vdso: " Thomas Weißschuh
2026-12-04  7:30 ` Thomas Weißschuh [this message]
2026-12-04  7:30 ` [PATCH 5/9] powerpc/vdso: " Thomas Weißschuh
2026-12-04  7:30 ` [PATCH 6/9] MIPS: VDSO: " Thomas Weißschuh
2026-12-04  7:30 ` [PATCH 7/9] riscv: vdso: " Thomas Weißschuh
2026-12-04  7:30 ` [PATCH 8/9] s390/vdso: " Thomas Weißschuh
2026-12-04  7:30 ` [PATCH 9/9] vdso: Drop the old inclusion machinery 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=20261204-vdso-generic-include-v1-4-8f4ed31bfbbd@linutronix.de \
    --to=thomas.weissschuh@linutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-csky@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=loongarch@lists.linux.dev \
    --cc=luto@kernel.org \
    --cc=tglx@kernel.org \
    --cc=vincenzo.frascino@arm.com \
    /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