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=1796369453; b=N5itvr4UeJk4cYQOLVsfws/sxgdCHPXwsUozjBv7RscSHtcKPmc6Mbf61bui/Agg8beH UGcwv10lOS5lwKT4ETkaf2FJ+9mmvWuy4DYGxO6WHmx4TqL3mFXO9vUPbonMjtqScoGqJ 2L+GITeVmomAXfgt0h2wKMKtM6AnE8F4aKgRoVoLo1JtyM8E9cyWDRqwyJzIhxXCO26MG IjpdkyOOgSeFTKQJIBAEFYWnQ0aRN6d3F2Ha3EAvG+pndqxj9ifxEbVuYEa5fnAo5oboR tI0WCUX8YYFP4X97W1J898Auygg/aEQTwajRLy26kHy/GT78kP2W0KCtSgs0oEl4xNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369453; 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=a3ykjeZxfq+4Ci6jS63KKfa6ryu5U9+bR/MQ4u6wF+8=; b=yEgCVZhs7HeruYP65Ixm2aIkSVt9z3FpaQMCO0tVOZOoQl7KzVdJlqo7HMkHRfhrxQam +u3sNOf59jvDDdQMD2ewtWysheMPbdOTz2V0yqlOF2iQBD3u1oQzyG+EmHBAgqdwmHp38 I6UBZL+Q0VpUdW9MUDf6HZ+3WIoI/kmn6Hpy8DkyVG5emVSOLVgqEUO6uFwjTrCFuDrQd Gq6vU0uw07a8RhJuT7VSSww2XCP0ZunP0oh5bykYYtS0qhEr6CGto01z47lHlQM7Tj9Qh QTEEOLsm1TxeLM5MhTG8SV87COjKqWBo9MtP/fj0CT5s287c0W5IkTNqer8btFTkVJw== 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=WD8PPlgF; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=wdGo7jhh; 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 74DF2606A6B3; Fri, 4 Dec 2026 07:30:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 74DF2606A6B3 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=WD8PPlgF; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=wdGo7jhh From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796369451; 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=a3ykjeZxfq+4Ci6jS63KKfa6ryu5U9+bR/MQ4u6wF+8=; b=WD8PPlgFi1UBZ0sgA95gFxGekT9t55aEhAGUk14kJyVIZ9qoyanv+Xn1jBJ7OhGmeoK9n3 b3P7+n2zmi+kLWc11U8yg0iKQWG1iL8cZ/b3+hx9RtW3sGUlTV2/aroa2UTw0LDaP7XxLt Wi9xp/lYZf+M4MENClsiW2G6lr4KNIgTx7VrjTtxCIlpSyibZ1fe3KX7cYo/LPXh7kTBBs WHwt4wBT1T4uRAZxfVmTUWSP8BYox9Jx6wbmogDmQrfUhq1Un4RwXLeVTyXSUpDzr/JVMm ZYx4E+kh0L9XQz05fgiVTRPUomaQzG33gUWMuKq0s2tlwCsJIkzYxWKq//33Lw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796369451; 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=a3ykjeZxfq+4Ci6jS63KKfa6ryu5U9+bR/MQ4u6wF+8=; b=wdGo7jhh8qX+wGTaaT+aOFHX2k5hPSs2syX3KNtxFXEO5o2YV5GbJJbIhrL+zA5nXShxoW Ybmib0BUIBQXKpDQ== Date: Fri, 04 Dec 2026 08:30:33 +0100 Subject: [PATCH 6/9] MIPS: VDSO: Directly include the generic vDSO implementations X-Mailing-List: linux-kernel@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-6-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=1821; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=EM25WQqBspz+Jky7+ayRsL2+x0iZ5Swrpzoi3MLKqk8=; b=4IaZZ1ScUDiDbemoUNXsEdF1HlbYgl2p3xMAQ7pKHqwYtTziV6uNJw+9ZdO8ylFkp8XAZYHul fY0qCHSFGN4B//meF0H0TJSHt+tWw9RHld+0Ya6+CUeC9HYYxqMmsU0 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/mips/vdso/Makefile | 10 +++------- arch/mips/vdso/vgettimeofday.c | 2 ++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile index 00d3ba2c482a..fd07eaedc2d5 100644 --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -35,16 +35,12 @@ cflags-vdso := $(ccflags-vdso) \ aflags-vdso := $(ccflags-vdso) \ -D__ASSEMBLY__ -Wa,-gdwarf-2 -ifneq ($(c-gettimeofday-y),) -obj-vdso-y += vgettimeofday.o -CFLAGS_vgettimeofday.o = -include $(c-gettimeofday-y) +obj-vdso-$(CONFIG_MIPS_GENERIC_GETTIMEOFDAY) += vgettimeofday.o # config-n32-o32-env.c prepares the environment to build a 32bit vDSO # library on a 64bit kernel. -# Note: Needs to be included before than the generic library. -CFLAGS_vgettimeofday-o32.o = -include $(src)/config-n32-o32-env.c -include $(c-gettimeofday-y) -CFLAGS_vgettimeofday-n32.o = -include $(src)/config-n32-o32-env.c -include $(c-gettimeofday-y) -endif +CFLAGS_vgettimeofday-o32.o = -include $(src)/config-n32-o32-env.c +CFLAGS_vgettimeofday-n32.o = -include $(src)/config-n32-o32-env.c CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) diff --git a/arch/mips/vdso/vgettimeofday.c b/arch/mips/vdso/vgettimeofday.c index a1fb06b8973e..60831451ba3e 100644 --- a/arch/mips/vdso/vgettimeofday.c +++ b/arch/mips/vdso/vgettimeofday.c @@ -11,6 +11,8 @@ #include #include +#include "../../../lib/vdso/gettimeofday.c" + #if _MIPS_SIM != _MIPS_SIM_ABI64 #ifdef CONFIG_COMPAT_32BIT_TIME -- 2.56.1