[PATCH 00/15] vdso: Clean up the vsyscall.h headers
flat view
COLD49d
LANDED
From: Thomas Weißschuh <hidden>
Date: 2026-09-09 08:51:47
Also in:
linux-arch, linux-arm-kernel, linux-mips, linux-riscv, linux-s390, lkml, loongarch, sparclinux
Subsystem:
arm port, arm64 port (aarch64 architecture), generic include/asm header files, generic vdso library, library code, linux for powerpc (32-bit and 64-bit), loongarch, mips, risc-v architecture, s390 architecture, sparc + ultrasparc (sparc/sparc64), the rest, x86 architecture (32-bit and 64-bit), x86 entry code, x86 vdso · Maintainers:
Russell King, Catalin Marinas, Will Deacon, Arnd Bergmann, Andy Lutomirski, Thomas Gleixner, Vincenzo Frascino, Andrew Morton, Madhavan Srinivasan, Huacai Chen, Thomas Bogendoerfer, Paul Walmsley, Palmer Dabbelt, Albert Ou, Heiko Carstens, Vasily Gorbik, Alexander Gordeev, "David S. Miller", Andreas Larsson, Linus Torvalds, Ingo Molnar, Borislav Petkov, Dave Hansen
The vsyscall.h headers are a mess. Some of that was necessary back when
some architectures where not using the generic vDSO infrastructure.
Now that this is not necessary anymore, the headers can be cleaned up
and many of the can be deleted altogether.
The recipient list is trimmed to only the vDSO maintainers and the
architecture lists.
Signed-off-by: Thomas Weißschuh <redacted>
---
Thomas Weißschuh (15):
vdso: Move the kernel-side time update helpers to a new header
vdso/gettimeofday: Define fallback __arch_get_vdso_u_time_data() in gettimeofday.c
vdso/getrandom: Define fallback __arch_get_vdso_u_rng_data() in getrandom.c
vdso/vsyscall: Define fallback time synchronization functions in vsyscall.c
vdso: Delete asm-generic/vdso/vsyscall.h
x86/vdso: Move vDSO page definitions to asm/vdso.h
sparc/vdso: Move __VDSO_PAGES to asm/vdso.h
s390/vdso: Delete asm/vdso/vsyscall.h inclusions
sparc/vdso: Delete asm/vdso/vsyscall.h inclusion
x86/vdso: Delete asm/vdso/vsyscall.h inclusions
arm64/vdso: Delete asm/vdso/vsyscall.h inclusions
riscv/hwprobe: Include vdso/datapage.h
vdso: Remove unnecessary vdso/vsyscall.h includes
vdso: Add asm-generic/vdso/vsyscall.h
vdso: Remove __ASSEMBLER__ guards from vsyscall.h
MAINTAINERS | 2 +-
arch/arm/include/asm/vdso/vsyscall.h | 7 ------
arch/arm/kernel/vdso.c | 1 -
arch/arm64/include/asm/vdso/getrandom.h | 1 -
arch/arm64/include/asm/vdso/vsyscall.h | 7 ------
arch/arm64/kernel/vdso.c | 1 -
arch/arm64/kernel/vdso/vdso.lds.S | 1 -
arch/loongarch/include/asm/vdso/vsyscall.h | 14 -----------
arch/loongarch/kernel/vdso.c | 1 -
arch/mips/include/asm/vdso/vsyscall.h | 16 -------------
arch/mips/kernel/vdso.c | 1 -
arch/powerpc/include/asm/vdso/vsyscall.h | 14 -----------
arch/riscv/include/asm/vdso/vsyscall.h | 14 -----------
arch/riscv/kernel/sys_hwprobe.c | 2 +-
arch/riscv/kernel/vdso.c | 1 -
arch/s390/include/asm/vdso/getrandom.h | 1 -
arch/s390/include/asm/vdso/vsyscall.h | 16 -------------
arch/s390/kernel/time.c | 6 ++---
arch/s390/kernel/vdso.c | 1 -
arch/s390/kernel/vdso/vdso.lds.S | 1 -
arch/sparc/include/asm/vdso.h | 6 +++++
arch/sparc/include/asm/vdso/vsyscall.h | 10 --------
arch/sparc/vdso/vdso-layout.lds.S | 2 +-
arch/sparc/vdso/vma.c | 1 -
arch/x86/entry/vdso/common/vdso-layout.lds.S | 1 -
arch/x86/entry/vdso/vma.c | 1 -
arch/x86/include/asm/vdso.h | 7 ++++++
arch/x86/include/asm/vdso/vsyscall.h | 22 -----------------
include/asm-generic/Kbuild | 1 +
include/asm-generic/vdso/vsyscall.h | 35 ----------------------------
include/linux/vdso_time.h | 8 +++++++
include/vdso/vsyscall.h | 7 ------
kernel/time/vsyscall.c | 25 +++++++++++++++-----
lib/vdso/getrandom.c | 8 +++++--
lib/vdso/gettimeofday.c | 10 +++++---
35 files changed, 60 insertions(+), 192 deletions(-)
---
base-commit: 1c2a9f9d89050cd9f2b2280060a9442338a1e6fe
change-id: 20260812-vdso-asm-generic-vsyscall-h-0f66fe59ad5c
Best regards,
--
Thomas Weißschuh [off-list ref]