From: Thomas Weißschuh Date: Fri, 27 Feb 2026 06:44:39 +0000 (+0100) Subject: vdso/datapage: Trim down unnecessary includes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e386fe5f1c26b24fb9ffc616f8e857f43cf88d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Thomas Gleixner Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260227-vdso-header-cleanups-v2-13-35d60acf7410@linutronix.de --- diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index 339a34e88c73f..5977723fb3b5d 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -4,24 +4,16 @@ #ifndef __ASSEMBLY__ -#include +#include + #include #include -#include -#include #include #include #include -#include -#include -#include -#include #include -#include #include -#include -#include #ifdef CONFIG_ARCH_HAS_VDSO_TIME_DATA #include