Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vdso/datapage: Remove inclusion of gettimeofday.h

vdso/datapage.h is useful without pulling in the architecture-specific
gettimeofday() helpers.

Move the include to the only users which needs it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260227-vdso-header-cleanups-v2-12-35d60acf7410@linutronix.de

authored by

Thomas Weißschuh and committed by
Borislav Petkov (AMD)
750d8cc8 8bd49acb

+11 -11
-11
include/vdso/datapage.h
··· 184 184 VDSO_NR_PAGES 185 185 }; 186 186 187 - /* 188 - * The generic vDSO implementation requires that gettimeofday.h 189 - * provides: 190 - * - __arch_get_hw_counter(): to get the hw counter based on the 191 - * clock_mode. 192 - * - gettimeofday_fallback(): fallback for gettimeofday. 193 - * - clock_gettime_fallback(): fallback for clock_gettime. 194 - * - clock_getres_fallback(): fallback for clock_getres. 195 - */ 196 - #include <asm/vdso/gettimeofday.h> 197 - 198 187 #else /* !__ASSEMBLY__ */ 199 188 200 189 #ifdef CONFIG_VDSO_GETRANDOM
+11
lib/vdso/gettimeofday.c
··· 12 12 #include <vdso/time32.h> 13 13 #include <vdso/time64.h> 14 14 15 + /* 16 + * The generic vDSO implementation requires that gettimeofday.h 17 + * provides: 18 + * - __arch_get_hw_counter(): to get the hw counter based on the 19 + * clock_mode. 20 + * - gettimeofday_fallback(): fallback for gettimeofday. 21 + * - clock_gettime_fallback(): fallback for clock_gettime. 22 + * - clock_getres_fallback(): fallback for clock_getres. 23 + */ 24 + #include <asm/vdso/gettimeofday.h> 25 + 15 26 /* Bring in default accessors */ 16 27 #include <vdso/vsyscall.h> 17 28