[tip: timers/vdso] vdso/gettimeofday: Add explicit includes

From: tip-bot2 for Thomas Weißschuh
Date: Sat Nov 01 2025 - 15:55:09 EST


The following commit has been merged into the timers/vdso branch of tip:

Commit-ID: ce9850bdfcbd1022df3e99934a11d67966885694
Gitweb: https://git.kernel.org/tip/ce9850bdfcbd1022df3e99934a11d67966885694
Author: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Tue, 14 Oct 2025 08:48:58 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitterDate: Sat, 01 Nov 2025 20:44:04 +01:00

vdso/gettimeofday: Add explicit includes

Various used symbols are only visible through transitive includes.
These transitive includes are about to go away.

Explicitly include the necessary headers.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Tested-by: Andreas Larsson <andreas@xxxxxxxxxxx>
Reviewed-by: Andreas Larsson <andreas@xxxxxxxxxxx>
Link: https://patch.msgid.link/20251014-vdso-sparc64-generic-2-v4-12-e0607bf49dea@xxxxxxxxxxxxx
---
lib/vdso/gettimeofday.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c
index 95df015..7b3fbae 100644
--- a/lib/vdso/gettimeofday.c
+++ b/lib/vdso/gettimeofday.c
@@ -3,8 +3,14 @@
* Generic userspace implementations of gettimeofday() and similar.
*/
#include <vdso/auxclock.h>
+#include <vdso/clocksource.h>
#include <vdso/datapage.h>
#include <vdso/helpers.h>
+#include <vdso/ktime.h>
+#include <vdso/limits.h>
+#include <vdso/math64.h>
+#include <vdso/time32.h>
+#include <vdso/time64.h>

/* Bring in default accessors */
#include <vdso/vsyscall.h>