From mboxrd@z Thu Jan 1 00:00:00 1970 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 DB49D4204E for ; Tue, 7 Jul 2026 06:07:24 +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=1783404446; cv=none; b=pQ3XQF5430eYB5V2S08nwZ7WUgTgJ7ILxVxgh78n8CAOizgJwL0ULfL0d8uJIYH3XnY5O6jyOnpmcU54ppAetPaEirSUbAsiAAThaqQGp1J9ugmrXZzNkFbc9FZ5qj6Yqq5aGGRuDtx+tT8HjIUlHZNSbUDT4GKsg+RkmEV2eBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783404446; c=relaxed/simple; bh=4uwY3mHToptkeN6EYKiZvjQBYWWyqVhPypk1sTQXBxE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YoI7/QFNLGWRb3puv6k59z40KqS7ViXjtxgNaUDds0O2qxhMxfExsPzim/Cxa2z8Fqr7mFV00sQTBWVVpQ0X0/SbZHyrJyz+83w414MAAau2HBgNw81nGVY/7lzx1wFA7xcINMPLFzxAGNIR8oxhTFp+ZWsHx6GuwLt612zrVX4= 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=uPf42CuA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=pJaSAYxI; 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="uPf42CuA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pJaSAYxI" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783404443; 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=+Xlhv+4zPgXX+3Rlu3j861e1RplhpW46IqaGMRs2+F0=; b=uPf42CuAbPzR+9CMZXifWUSRPuUMjVa9TAGI9QFf1eSqoKK+1uy6KV+DhLbpzGyKor9ZlK cmdE0/cAJnq6z7Oxm0LXzaDjFzb5h2HBNPSSKSaGCAdV+kTsgRYpUHqm4Co87BeIT27q0M C5D2dtgYFvzRCH9hcZVY+bJDmNXm9Eg7BskepbiIGrKm9ilcXsjEIQgq7qPhw3hkR0tkCq i8ftx9yKrVZZJpctDeCadTQc3RC1OXLDpQ8zFhE9quQR7nlQOiFF45e4s/6E1VuwS3CBeE QAFvWqu1QtnPGPsQr6quK9vrw/9Pc5vL9qm7uGm7zYRfH+pfzFiDULrlgH5eXA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783404443; 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=+Xlhv+4zPgXX+3Rlu3j861e1RplhpW46IqaGMRs2+F0=; b=pJaSAYxIhf5bVcuC1JU0dLvldLYqeJUO+Web/C1Be53KJ9Zxny8FZdue71xj3kUFSYDN/3 7t/Z2HIgf6MfQDAg== Date: Tue, 07 Jul 2026 08:07:15 +0200 Subject: [PATCH 2/2] timekeeping: Move the vDSO update declarations into a private header Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260707-timekeeping-header-cleanup-v1-2-e85ad96409a9@linutronix.de> References: <20260707-timekeeping-header-cleanup-v1-0-e85ad96409a9@linutronix.de> In-Reply-To: <20260707-timekeeping-header-cleanup-v1-0-e85ad96409a9@linutronix.de> To: John Stultz , Thomas Gleixner , Stephen Boyd Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1783404440; l=2629; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=4uwY3mHToptkeN6EYKiZvjQBYWWyqVhPypk1sTQXBxE=; b=2Y/SvzqTYeO7ORQX+CmOCUP/UgiyqHnT8Y+TARbjeZEZqYpX7ji41UnJDP/akDtLe2FkdjJWl DFpELiBnIoGD4KonvXtlX55wU7t+hKxya4RwFC8mh1gNKhNZAd8SHoc X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= All architectures are now fully using the generic vDSO infrastructure. They don't need these declarations anymore to implement the functions in architecture-specific code. Move them to the private header. Signed-off-by: Thomas Weißschuh --- include/linux/timekeeper_internal.h | 19 ------------------- kernel/time/time.c | 1 + kernel/time/timekeeping_internal.h | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index 58c83d6e65b3..264db7c9c071 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h @@ -190,23 +190,4 @@ struct timekeeper { s32 tai_offset; }; -#ifdef CONFIG_GENERIC_GETTIMEOFDAY - -extern void update_vsyscall(struct timekeeper *tk); -extern void update_vsyscall_tz(void); -extern void vdso_time_update_aux(struct timekeeper *tk); - -#else - -static inline void update_vsyscall(struct timekeeper *tk) -{ -} -static inline void update_vsyscall_tz(void) -{ -} -static inline void vdso_time_update_aux(struct timekeeper *tk) -{ -} -#endif - #endif /* _LINUX_TIMEKEEPER_INTERNAL_H */ diff --git a/kernel/time/time.c b/kernel/time/time.c index 0dd63a91e7c5..d1a7efd80bf5 100644 --- a/kernel/time/time.c +++ b/kernel/time/time.c @@ -42,6 +42,7 @@ #include #include "timekeeping.h" +#include "timekeeping_internal.h" /* * The timezone where the local system is located. Used as a default by some diff --git a/kernel/time/timekeeping_internal.h b/kernel/time/timekeeping_internal.h index 973ede670a36..6d719b8e5ea2 100644 --- a/kernel/time/timekeeping_internal.h +++ b/kernel/time/timekeeping_internal.h @@ -6,6 +6,8 @@ #include #include +struct timekeeper; + /* * timekeeping debug functions */ @@ -48,4 +50,23 @@ void timekeeper_unlock_irqrestore(unsigned long flags); /* NTP specific interface to access the current seconds value */ long ktime_get_ntp_seconds(unsigned int id); +#ifdef CONFIG_GENERIC_GETTIMEOFDAY + +extern void update_vsyscall(struct timekeeper *tk); +extern void update_vsyscall_tz(void); +extern void vdso_time_update_aux(struct timekeeper *tk); + +#else + +static inline void update_vsyscall(struct timekeeper *tk) +{ +} +static inline void update_vsyscall_tz(void) +{ +} +static inline void vdso_time_update_aux(struct timekeeper *tk) +{ +} +#endif + #endif /* _TIMEKEEPING_INTERNAL_H */ -- 2.55.0