]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
vdso/vsyscall: Gate update_vsyscall() behind CONFIG_GENERIC_GETTIMEOFDAY
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 19 May 2026 06:26:16 +0000 (08:26 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 2 Jun 2026 19:41:23 +0000 (21:41 +0200)
Both the compilation of kernel/time/vsyscall.c, which contains the real
definition of update_vsyscall() and the other vDSO definitions in
timekeeper_internal.h use CONFIG_GENERIC_GETTIMEOFDAY and not
CONFIG_GENERIC_TIME_VSYSCALL.

Align the code to use a single Kconfig symbol.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260519-vdso-generic_time_vsyscal-v1-2-5c2a5905d5f5@linutronix.de
include/linux/timekeeper_internal.h

index e36d11e33e0c147839f66df59b018cd88e28172e..4486dfd5d0ded4a0818578060841ef3e12434601 100644 (file)
@@ -190,7 +190,7 @@ struct timekeeper {
        s32                     tai_offset;
 };
 
-#ifdef CONFIG_GENERIC_TIME_VSYSCALL
+#ifdef CONFIG_GENERIC_GETTIMEOFDAY
 
 extern void update_vsyscall(struct timekeeper *tk);
 extern void update_vsyscall_tz(void);