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 16539606A322 for ; Fri, 4 Dec 2026 07:33:07 +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=MtAai4ny; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=uSOyOSCv; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=0nyOZQHv 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=xJOeRkgceIUdpzYP9G/bZ6yca3yDzgtqmhsXCy54I34=; b=MtAai4nyLmtJbw TViUI9Vj5MeyC2/U+jgx3fUR+gTYrWqmUo+QOEwZiNv5q8mF0Dbs6QrxG4SXcf9WFVb+cqP1220RZ n1NYar/tVTJtJJqIOsrETv1+S5g9jqhvjOSCUQxeauY2/mtQGQbjyWC9e1RJQY81kRyTAjdDsBx+D B5Zt52F+AoNucwogJKGOu9Rx/vqbh+A5uLcu/NPtrLGwlbqA4eFtx9SUnOWGjiE5AzsRTuAX7HWs+ dRsDsHKdjxvchWVjt7Zv96NvkuTJXOtEijvR6k8ZTOAttC5sHhFoUblj21bK8S7zF1qCtQ2Xymh70 x3YE/mbpVtkaCiejG6gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNla-0000000Gwxu-22i6; Fri, 04 Dec 2026 07:31:55 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNkp-0000000Gwq3-2C51; Fri, 04 Dec 2026 07:31:36 +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=1796369449; 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=xJOeRkgceIUdpzYP9G/bZ6yca3yDzgtqmhsXCy54I34=; b=uSOyOSCvdf6WyiRhOsv3oENIDqTV5i1JOyUv/VBiMvLYS2SO1MdBLe7YAd22gix+V3bMch hwp/oYogG0F7oXj9Z8vFhC/QKIp2Q9dMIQXKm4I5e7I02+sJZqDTDZW36oLiERPQmny6cZ /f13yH/pNhvN6OwujeJ4tGLL8rg6yIz9ij9e1+m6Tg3qsKdzKNoFCYzECDKQ7EwkQO5C6Z b26YxZf7ZWrktZXm76DMpmZYVz3EhvBnDEP9/SK7Eh2C8jbkojFJ/9NtvSzqCbUqItDQgY EW2SCGqmdQXf8EdVJcW2+inJptM8RBp9bZrTF/wqIeyeWC3qIr3mWBnMXOaL9A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796369449; 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=xJOeRkgceIUdpzYP9G/bZ6yca3yDzgtqmhsXCy54I34=; b=0nyOZQHvGy2Uut7mKjdMcTUnev5Nnl7EfuhEtZfItJrtN4nCX1EAJ/gtR88PlyXYSxEZnv DJk7dCwMqZZY94Ag== Date: Fri, 04 Dec 2026 08:30:30 +0100 Subject: [PATCH 3/9] ARM: 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-3-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=1359; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=F6UZtDu8SROXoRnM7acOTn3rnASk7trOXcE0iDERwiQ=; b=lvJ/odU8deKS6hPBuV4T5pp/33RMReQ4znzsIYvbQnGHzqEwMKlNIePKGplPLVuJrntVu2xPt YXKFTMNQk8JBZ1goQzPBdu2F5t9iCc8aEwT8CFj23Yi1C53UiDfz+B3 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_233113_571153_9596E2F9 X-CRM114-Status: UNSURE ( 7.94 ) 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/arm/vdso/Makefile | 4 ---- arch/arm/vdso/vgettimeofday.c | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile index cf8cd39ab804..c1dc650672bf 100644 --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile @@ -27,11 +27,7 @@ CFLAGS_REMOVE_vdso.o = -pg # Force -O2 to avoid libgcc dependencies CFLAGS_REMOVE_vgettimeofday.o = -pg -Os $(RANDSTRUCT_CFLAGS) $(KSTACK_ERASE_CFLAGS) $(GCC_PLUGINS_CFLAGS) -ifeq ($(c-gettimeofday-y),) CFLAGS_vgettimeofday.o = -O2 -else -CFLAGS_vgettimeofday.o = -O2 -include $(c-gettimeofday-y) -endif # Force dependency $(obj)/vdso.o : $(obj)/vdso.so diff --git a/arch/arm/vdso/vgettimeofday.c b/arch/arm/vdso/vgettimeofday.c index 3eebeddbfd18..610f09301f39 100644 --- a/arch/arm/vdso/vgettimeofday.c +++ b/arch/arm/vdso/vgettimeofday.c @@ -10,6 +10,8 @@ #include #include +#include "../../../lib/vdso/gettimeofday.c" + #ifdef CONFIG_COMPAT_32BIT_TIME int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) -- 2.56.1