summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2026-02-27 09:44:39 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2026-03-11 17:22:39 +0300
commitf5e386fe5f1c26b24fb9ffc616f8e857f43cf88d (patch)
tree4a151d74273d9c225c8486c81a0bc6ffcd02125a /include
parent750d8cc84901757d9e5fe96207f5aa6b3e2acf92 (diff)
downloadlinux-f5e386fe5f1c26b24fb9ffc616f8e857f43cf88d.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/vdso/datapage.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h
index 339a34e88c73..5977723fb3b5 100644
--- a/include/vdso/datapage.h
+++ b/include/vdso/datapage.h
@@ -4,24 +4,16 @@
#ifndef __ASSEMBLY__
-#include <linux/compiler.h>
+#include <linux/types.h>
+
#include <uapi/linux/bits.h>
#include <uapi/linux/time.h>
-#include <uapi/linux/types.h>
-#include <uapi/asm-generic/errno-base.h>
#include <vdso/align.h>
#include <vdso/bits.h>
#include <vdso/cache.h>
-#include <vdso/clocksource.h>
-#include <vdso/ktime.h>
-#include <vdso/limits.h>
-#include <vdso/math64.h>
#include <vdso/page.h>
-#include <vdso/processor.h>
#include <vdso/time.h>
-#include <vdso/time32.h>
-#include <vdso/time64.h>
#ifdef CONFIG_ARCH_HAS_VDSO_TIME_DATA
#include <asm/vdso/time_data.h>