[tip: timers/vdso] vdso: Remove unnecessary vdso/vsyscall.h includes

From: tip-bot2 for Thomas Weißschuh

Date: Thu Oct 15 2026 - 12:34:35 EST


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

Commit-ID: d6df494a01351b1b757b7f1f559bcf696d03667d
Gitweb: https://git.kernel.org/tip/d6df494a01351b1b757b7f1f559bcf696d03667d
Author: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Wed, 09 Sep 2026 10:51:26 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Thu, 15 Oct 2026 17:33:20 +02:00

vdso: Remove unnecessary vdso/vsyscall.h includes

None of these files uses anything from the header.

Remove the inclusion.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260909-vdso-asm-generic-vsyscall-h-v1-13-63ae856cc659@xxxxxxxxxxxxx
---
arch/arm/kernel/vdso.c | 1 -
arch/arm64/kernel/vdso.c | 1 -
arch/loongarch/kernel/vdso.c | 1 -
arch/mips/kernel/vdso.c | 1 -
arch/riscv/kernel/sys_hwprobe.c | 1 -
arch/riscv/kernel/vdso.c | 1 -
arch/s390/kernel/time.c | 1 -
lib/vdso/getrandom.c | 3 ---
lib/vdso/gettimeofday.c | 3 ---
9 files changed, 13 deletions(-)

diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c
index e306d0c..7be871f 100644
--- a/arch/arm/kernel/vdso.c
+++ b/arch/arm/kernel/vdso.c
@@ -23,7 +23,6 @@
#include <asm/vdso.h>
#include <clocksource/arm_arch_timer.h>
#include <vdso/helpers.h>
-#include <vdso/vsyscall.h>

#define MAX_SYMNAME 64

diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
index 592dd86..50596da 100644
--- a/arch/arm64/kernel/vdso.c
+++ b/arch/arm64/kernel/vdso.c
@@ -22,7 +22,6 @@
#include <linux/vmalloc.h>
#include <vdso/datapage.h>
#include <vdso/helpers.h>
-#include <vdso/vsyscall.h>

#include <asm/cacheflush.h>
#include <asm/signal32.h>
diff --git a/arch/loongarch/kernel/vdso.c b/arch/loongarch/kernel/vdso.c
index 8ce8159..1edc8fb 100644
--- a/arch/loongarch/kernel/vdso.c
+++ b/arch/loongarch/kernel/vdso.c
@@ -20,7 +20,6 @@
#include <asm/vdso.h>
#include <asm/vdso/vdso.h>
#include <vdso/helpers.h>
-#include <vdso/vsyscall.h>
#include <vdso/datapage.h>
#include <generated/vdso-offsets.h>

diff --git a/arch/mips/kernel/vdso.c b/arch/mips/kernel/vdso.c
index 8165dd3..8eb1760 100644
--- a/arch/mips/kernel/vdso.c
+++ b/arch/mips/kernel/vdso.c
@@ -23,7 +23,6 @@
#include <asm/vdso.h>
#include <asm/vdso/vdso.h>
#include <vdso/helpers.h>
-#include <vdso/vsyscall.h>

static_assert(VDSO_NR_PAGES == __VDSO_PAGES);

diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c
index 5c440ec..d427d2f 100644
--- a/arch/riscv/kernel/sys_hwprobe.c
+++ b/arch/riscv/kernel/sys_hwprobe.c
@@ -19,7 +19,6 @@
#include <asm/vendor_extensions/sifive_hwprobe.h>
#include <asm/vendor_extensions/thead_hwprobe.h>
#include <vdso/datapage.h>
-#include <vdso/vsyscall.h>


#define EXT_KEY(isa_arg, ext, pv, missing) \
diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c
index 9c2f5e4..5666cec 100644
--- a/arch/riscv/kernel/vdso.c
+++ b/arch/riscv/kernel/vdso.c
@@ -15,7 +15,6 @@
#include <asm/vdso.h>
#include <linux/vdso_datastore.h>
#include <vdso/datapage.h>
-#include <vdso/vsyscall.h>

#define VVAR_SIZE (VDSO_NR_PAGES << PAGE_SHIFT)

diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index 161628f..bca65bf 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -40,7 +40,6 @@
#include <linux/kprobes.h>
#include <linux/uaccess.h>
#include <linux/vdso_time.h>
-#include <vdso/vsyscall.h>
#include <vdso/clocksource.h>
#include <vdso/helpers.h>
#include <asm/facility.h>
diff --git a/lib/vdso/getrandom.c b/lib/vdso/getrandom.c
index 6ff4654..e0fa10b 100644
--- a/lib/vdso/getrandom.c
+++ b/lib/vdso/getrandom.c
@@ -16,9 +16,6 @@
#include <uapi/linux/mman.h>
#include <uapi/linux/random.h>

-/* Bring in default accessors */
-#include <vdso/vsyscall.h>
-
#ifndef __arch_get_vdso_u_rng_data
static __always_inline const struct vdso_rng_data *__arch_get_vdso_u_rng_data(void)
{
diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c
index b867c23..728fed1 100644
--- a/lib/vdso/gettimeofday.c
+++ b/lib/vdso/gettimeofday.c
@@ -27,9 +27,6 @@

#include <linux/build_bug.h>

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

#ifdef VDSO_DELTA_NOMASK