From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C59BA606A32C for ; Fri, 4 Dec 2026 07:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=LkDD5w4b; 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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=a3ykjeZxfq+4Ci6jS63KKfa6ryu5U9+bR/MQ4u6wF+8=; b=LkDD5w4b2W8g6B 3eid77imrXSmdSwPK3N5UuLIif19NUeKO7maIK4mubrBY4sGGofHuZgL9sbWZ2s57OzFFq+pYFlho YRGTpaYwfiL73hgLHygs3VbnJ8CRKjr70SgHfWaN2sE7GqgQj6xHARcewjPEB20hdjgcosUooViKH r0t36vdyOXWaXV8Zgy8riV/nvbiMpNy+Oi9GSpshLynf5ggmhdw+p6Mosn5KwblqVcJ70WkXP8N3c nMayR0/YkjYFngZQbDkEFrlwUUE3JkSKUZtcgGfCujGgZLS5tZY9+b1Fpt4GESarvnPhHRVc9OLz9 I3vwZFvFz6UvmPln1TYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNno-0000000GxiM-1kVn; Fri, 04 Dec 2026 07:33:56 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNla-0000000GwxB-2BwS; Fri, 04 Dec 2026 07:32:16 +0000 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-Archived-By: 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_233156_018975_A4986C04 X-CRM114-Status: UNSURE ( 7.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-16.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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