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: Trim down unnecessary includes

vdso/datapage.h includes a lot of headers which are not strictly necessary.
Some of those headers include architecture-specific vDSO headers which
prevent the usage of vdso/datapage.h in kernel code on architectures
without an vDSO. This would be useful however to write generic code using
IS_ENABLED(), for example in drivers/char/random.c.

Remove the unnecessary includes.

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-13-35d60acf7410@linutronix.de

authored by

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

+2 -10
+2 -10
include/vdso/datapage.h
··· 4 4 5 5 #ifndef __ASSEMBLY__ 6 6 7 - #include <linux/compiler.h> 7 + #include <linux/types.h> 8 + 8 9 #include <uapi/linux/bits.h> 9 10 #include <uapi/linux/time.h> 10 - #include <uapi/linux/types.h> 11 - #include <uapi/asm-generic/errno-base.h> 12 11 13 12 #include <vdso/align.h> 14 13 #include <vdso/bits.h> 15 14 #include <vdso/cache.h> 16 - #include <vdso/clocksource.h> 17 - #include <vdso/ktime.h> 18 - #include <vdso/limits.h> 19 - #include <vdso/math64.h> 20 15 #include <vdso/page.h> 21 - #include <vdso/processor.h> 22 16 #include <vdso/time.h> 23 - #include <vdso/time32.h> 24 - #include <vdso/time64.h> 25 17 26 18 #ifdef CONFIG_ARCH_HAS_VDSO_TIME_DATA 27 19 #include <asm/vdso/time_data.h>