From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796369452; b=1Ooy4V5luFU1bPSETDMWMkc2OVEPoKI2oExzk1zD2/RsbNzujCtRXFvj1d4ZIJroC90f 7/SLMOFeGF6eibTx01e3yFFy9guTBvP/gvPdmsusqnnXWB9TSYETZ2ng51dxO9+N7qtZo 1yDwCAQ7lbx4qhT89BNHJgllVPypcRkyy0dAEYs/oYGRxpNc+gQK8tzKT3u1Q0MtlMMKl Ezu/wtd4K56dwWl8nkylqdByj4SqmHhOGMSkslu8RnqD132Nb0SLLuXzo5P2mjrxveFxK L3GIgp65dfLalC2xsJhb5XgKW4hl47xBdSGSusUlIs4z/WTs0NXyBPYUMZVPl+HOHOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369452; h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: References:In-Reply-To:To:Cc:X-Developer-Signature:X-Developer-Key; bh=F+ET2vfkBj+K8Or5+/M3VT/lYmlDSCbRsvYIMkuHGAA=; b=EUS3qGRwt8do8MH6ilx4PAAfIthpob+pc3BrGMoeB18XSfOLldB1idojx43+UXrqgx7M ql9/kLNJ1szFQFkyg4MKqDAqTJhqdz/Sz3GCWxbSynrqCWda/A7Fl5ORuOPfTc/Q/oPaf EA5QOZtrIj5YIE+kayZdnH1QYJyTS0pqrKeqI0x0i5o4OajCniKRIhES5uLZfQrTvnOOB vYNHBijWtb+LPrd+pJiGdTFAMxXBGyyBCMhfM4VOemRIYFf9FFP/8hz8/BhEzCmwloQpd teuGWBwsKlC1Trs24WaNWc80deLWEMl0YhbM3BSlrfPEOCPh1YrtBhrxSyW9ED2jtxw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=Pu+tqwWV; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=FiXo5bgF; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2AF7606A6A2; Fri, 4 Dec 2026 07:30:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B2AF7606A6A2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=Pu+tqwWV; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=FiXo5bgF From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796369450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F+ET2vfkBj+K8Or5+/M3VT/lYmlDSCbRsvYIMkuHGAA=; b=Pu+tqwWVe7WE8U8QwI+xQADpO37GDAAT+O7ugSLCDdqC07N3CndpHYpZ9Vfac86Ks1gV3u 4BLPEos5DXZyiL4C6zPTFgdQH0Lh911naZkTmXqpGWCGzZWSxhyodvfXFixdBYk7jwqEcR GS+OR3CFEmPoKVwqKpyrVspM0fwsiFHRZqaaH0OuJ4VIbzfGYqVa2QdKT88Pc8PyASF41M 9VBmNNFLCRqOEZ165vbaKuCzkKMf3GvxcJzq4rs8u/p4mhj/8QTa+YvATRHCFVbAq2Ozv1 31qKNx0TXkRbmdW3swl80iv28xYMlLkPsoaEuWDOhtmTL3xQMBwLDklLz1ICPA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796369450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F+ET2vfkBj+K8Or5+/M3VT/lYmlDSCbRsvYIMkuHGAA=; b=FiXo5bgFE3yWMTEjUajqg6j1PORldx10MPus73+oCrCYFxkKsJrRutw/2Xmtbxp9iEyeow AAZXNLl/09lXexCQ== Date: Fri, 04 Dec 2026 08:30:31 +0100 Subject: [PATCH 4/9] LoongArch: vDSO: Directly include the generic vDSO implementations X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261204-vdso-generic-include-v1-4-8f4ed31bfbbd@linutronix.de> References: <20261204-vdso-generic-include-v1-0-8f4ed31bfbbd@linutronix.de> In-Reply-To: <20261204-vdso-generic-include-v1-0-8f4ed31bfbbd@linutronix.de> To: Thomas Gleixner , Andy Lutomirski , Vincenzo Frascino 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, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1796369447; l=2054; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=liUdTD3LeIWDg9uYZteMpzTzYtMli2R6jkA62MhZML8=; b=tg7QCJHnrPAJWlq64fErqBkPSVzwiyfIYxHjqM2zZ3mANSxXrddWoBTYJ5YD+krVOCtjFdw81 UP7bpKbtQuwAchYQjybzT0hsaioDnc9S0Jwm1Z5RPt38er6cuKNr9Sp X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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 --- 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 +#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 #include +#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