From nobody Mon Jun 8 08:30:33 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13F3C47DD49; Thu, 4 Jun 2026 16:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780590292; cv=none; b=cVPW+B4zYuoBqQITou0l0s+g7bNheEQ1v2ygZfrmlgtfsCQz2gfnylDYavoBIZAGmhY/tCExAHkzrFE2XMZZ3qaHvNVgNKYCKfSRUP2VR74rmp1U8czusYCx8jGG4K2GAwTwWt5DtHCZW960gLkaihx0eCNIMRGafjljvAV0ml8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780590292; c=relaxed/simple; bh=JaUDXBz2AV7CcgLgX8/YcY/Fh2+8R6mHZzphhBAhyO0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=h1WymwKgwptCThEY1dflKu1iCcHyu3d0fSDRMghAC8RpeLy1msa3cd3MRv+jmfz6GnirF89xTic6KvN1stvs6cbGELkgszg7maXTsKI6sQx+TWcT8uoN5PjUCcgwYo/+IYTsCrIcWSH+K98ji63pfcXhFASVIYWJMKDFZw3hh6w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GGIbdYg6; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hefMzndm; arc=none smtp.client-ip=193.142.43.55 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.b="GGIbdYg6"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hefMzndm" Date: Thu, 04 Jun 2026 16:24:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780590289; h=from:from:sender:sender:reply-to: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=Apr8Y7UST1rAoiGrGnzSmcg6F0Gh9vOBiDBZNW1l/RA=; b=GGIbdYg6jboVptP0WZbBqt3qqZWskO1+qDWkjC2oYpMPDJBQ8OFdbcmU/Q96li0e4m5abi p2RJV9/Mid4JdAsVaovwhohqqcg2PjngffQO3V29Fev1c3YHprm7fVRpiAfceOAYylygPK mt8YY+EjHhHPMTCg8Byf+QY3qIaiYl4yr+A78k66hxHEM2641ChNbrFxJxe7oQvRP9kezE 1LcDGTQE0xmp903mbXxwwjJoo8CZ2HW4p+D+q0nzEzpHeDOKz8Vy9EgP9f/vWv3FLpSVwr OqyzxZmWDep/1ah77mw62ZP5w6hGoB/Oh0getFL6WLyupo9XC33Vy3fOBelQ3w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780590289; h=from:from:sender:sender:reply-to: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=Apr8Y7UST1rAoiGrGnzSmcg6F0Gh9vOBiDBZNW1l/RA=; b=hefMzndmkWuEaGT5xfD4RP2lOsDHmfAvb15JkZ+DcRjH1mVtqhFvbSbMvvy7OaRNFC4oxl 1QeWYumnWEkZDKCQ== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/vdso] MIPS: VDSO: Fold MIPS_CLOCK_VSYSCALL into MIPS_GENERIC_GETTIMEOFDAY Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , Thomas Bogendoerfer , Daniel Lezcano , Andy Lutomirski , Vincenzo Frascino , Arnd Bergmann , linux-mips@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260521-vdso-mips-kconfig-v1-9-2f79dcd6c78f@linutronix.de> References: <20260521-vdso-mips-kconfig-v1-9-2f79dcd6c78f@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178059028743.710.4031956341097177407.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/vdso branch of tip: Commit-ID: 13f6218e6fe79dc64aed76d738b765b45f62492b Gitweb: https://git.kernel.org/tip/13f6218e6fe79dc64aed76d738b765b45= f62492b Author: Thomas Wei=C3=9Fschuh AuthorDate: Thu, 21 May 2026 08:53:23 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 04 Jun 2026 18:22:46 +02:00 MIPS: VDSO: Fold MIPS_CLOCK_VSYSCALL into MIPS_GENERIC_GETTIMEOFDAY This configuration option exists so "that we don't provide the symbol when there's no possibility of there being a usable clocksource". However it only covers __vdso_gettimeofday() and none of the other vDSO functions which should be affected by the same circumstances.slightly sligh= tly. Remove MIPS_CLOCK_VSYSCALL and fold its usecase into MIPS_GENERIC_GETTIMEOFDAY, which works correctly. Signed-off-by: Thomas Wei=C3=9Fschuh Signed-off-by: Thomas Gleixner Cc: Thomas Bogendoerfer Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Andy Lutomirski Cc: Vincenzo Frascino Cc: Arnd Bergmann Cc: linux-mips@vger.kernel.org Link: https://patch.msgid.link/20260521-vdso-mips-kconfig-v1-9-2f79dcd6c78f= @linutronix.de --- arch/mips/Kconfig | 4 +--- arch/mips/vdso/vdso.lds.S | 2 -- arch/mips/vdso/vgettimeofday.c | 20 -------------------- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ccc66e3..323ca08 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1133,9 +1133,6 @@ config CSRC_R4K config CSRC_SB1250 bool =20 -config MIPS_CLOCK_VSYSCALL - def_bool CSRC_R4K || CLKSRC_MIPS_GIC - config GPIO_TXX9 select GPIOLIB bool @@ -3171,6 +3168,7 @@ config MIPS_GENERIC_GETTIMEOFDAY def_bool y select GENERIC_GETTIMEOFDAY select HAVE_GENERIC_VDSO + depends on CSRC_R4K || CLKSRC_MIPS_GIC # GCC (at least up to version 9.2) appears to emit function calls that ma= ke use # of the GOT when targeting microMIPS, which we can't use in the VDSO due= to # the lack of relocations. As such, we disable the VDSO for microMIPS bui= lds. diff --git a/arch/mips/vdso/vdso.lds.S b/arch/mips/vdso/vdso.lds.S index fd263b0..05badf3 100644 --- a/arch/mips/vdso/vdso.lds.S +++ b/arch/mips/vdso/vdso.lds.S @@ -97,9 +97,7 @@ VERSION #ifdef CONFIG_GENERIC_GETTIMEOFDAY global: __vdso_clock_gettime; -#ifdef CONFIG_MIPS_CLOCK_VSYSCALL __vdso_gettimeofday; -#endif __vdso_clock_getres; #if _MIPS_SIM !=3D _MIPS_SIM_ABI64 __vdso_clock_gettime64; diff --git a/arch/mips/vdso/vgettimeofday.c b/arch/mips/vdso/vgettimeofday.c index 1d23621..00f9fcf 100644 --- a/arch/mips/vdso/vgettimeofday.c +++ b/arch/mips/vdso/vgettimeofday.c @@ -18,22 +18,12 @@ int __vdso_clock_gettime(clockid_t clock, return __cvdso_clock_gettime32(clock, ts); } =20 -#ifdef CONFIG_MIPS_CLOCK_VSYSCALL - -/* - * This is behind the ifdef so that we don't provide the symbol when there= 's no - * possibility of there being a usable clocksource, because there's nothin= g we - * can do without it. When libc fails the symbol lookup it should fall bac= k on - * the standard syscall path. - */ int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) { return __cvdso_gettimeofday(tv, tz); } =20 -#endif /* CONFIG_MIPS_CLOCK_VSYSCALL */ - int __vdso_clock_getres(clockid_t clock_id, struct old_timespec32 *res) { @@ -59,22 +49,12 @@ int __vdso_clock_gettime(clockid_t clock, return __cvdso_clock_gettime(clock, ts); } =20 -#ifdef CONFIG_MIPS_CLOCK_VSYSCALL - -/* - * This is behind the ifdef so that we don't provide the symbol when there= 's no - * possibility of there being a usable clocksource, because there's nothin= g we - * can do without it. When libc fails the symbol lookup it should fall bac= k on - * the standard syscall path. - */ int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) { return __cvdso_gettimeofday(tv, tz); } =20 -#endif /* CONFIG_MIPS_CLOCK_VSYSCALL */ - int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) {