From: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
To: John Stultz <jstultz@google.com>,
Thomas Gleixner <tglx@kernel.org>,
Stephen Boyd <sboyd@kernel.org>
Cc: linux-kernel@vger.kernel.org,
"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Subject: [PATCH 1/2] timekeeping: Fold vdso_time_update_aux() declarations into the generic ifdeffery
Date: Tue, 07 Jul 2026 08:07:14 +0200 [thread overview]
Message-ID: <20260707-timekeeping-header-cleanup-v1-1-e85ad96409a9@linutronix.de> (raw)
In-Reply-To: <20260707-timekeeping-header-cleanup-v1-0-e85ad96409a9@linutronix.de>
The only caller of vdso_time_update_aux() is already gated behind
CONFIG_POSIX_AUX. The additional check in the header files is not
necessary.
Remove it and then fold the declarations into the existing
CONFIG_GENERIC_GETTIMEOFDAY ifdeffery.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
include/linux/timekeeper_internal.h | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h
index 4486dfd5d0de..58c83d6e65b3 100644
--- a/include/linux/timekeeper_internal.h
+++ b/include/linux/timekeeper_internal.h
@@ -194,6 +194,7 @@ struct timekeeper {
extern void update_vsyscall(struct timekeeper *tk);
extern void update_vsyscall_tz(void);
+extern void vdso_time_update_aux(struct timekeeper *tk);
#else
@@ -203,12 +204,9 @@ static inline void update_vsyscall(struct timekeeper *tk)
static inline void update_vsyscall_tz(void)
{
}
-#endif
-
-#if defined(CONFIG_GENERIC_GETTIMEOFDAY) && defined(CONFIG_POSIX_AUX_CLOCKS)
-extern void vdso_time_update_aux(struct timekeeper *tk);
-#else
-static inline void vdso_time_update_aux(struct timekeeper *tk) { }
+static inline void vdso_time_update_aux(struct timekeeper *tk)
+{
+}
#endif
#endif /* _LINUX_TIMEKEEPER_INTERNAL_H */
--
2.55.0
next prev parent reply other threads:[~2026-07-07 6:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 6:07 [PATCH 0/2] timekeeping: Move the vDSO update declarations into a private header Thomas Weißschuh
2026-07-07 6:07 ` Thomas Weißschuh [this message]
2026-07-07 21:49 ` [tip: timers/core] timekeeping: Fold vdso_time_update_aux() declarations into the generic ifdeffery tip-bot2 for Thomas Weißschuh
2026-07-07 6:07 ` [PATCH 2/2] timekeeping: Move the vDSO update declarations into a private header Thomas Weißschuh
2026-07-07 21:48 ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260707-timekeeping-header-cleanup-v1-1-e85ad96409a9@linutronix.de \
--to=thomas.weissschuh@linutronix.de \
--cc=jstultz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sboyd@kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®