[PATCH v2 0/7] vDSO: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery

From: Thomas Weißschuh

Date: Fri Jul 17 2026 - 02:15:11 EST


Always provide the definitions of the VDSO_CLOCKMODE_* constants and
remove some ifdeffery from the clocksource drivers.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
Changes in v2:
- Also drep the IS_ENABLED() logic.
- Link to v1: https://patch.msgid.link/20260709-vdso-arch-clockmodes-v1-0-3fd780bbf851@xxxxxxxxxxxxx

---
Thomas Weißschuh (7):
kbuild: support generated asm-headers in subdirectories
vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY
MIPS: csrc-r4k: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
clocksource/drivers/mips-gic-timer: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
clocksource/drivers/arm_arch_timer: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
clocksource/drivers/timer-riscv: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
LoongArch: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery

arch/loongarch/kernel/time.c | 2 --
arch/mips/kernel/csrc-r4k.c | 2 --
drivers/clocksource/arm_arch_timer.c | 4 ----
drivers/clocksource/mips-gic-timer.c | 2 --
drivers/clocksource/timer-riscv.c | 4 ----
include/asm-generic/Kbuild | 1 +
include/asm-generic/vdso/clocksource.h | 0
include/vdso/clocksource.h | 4 +---
scripts/Makefile.asm-headers | 11 +++++------
9 files changed, 7 insertions(+), 23 deletions(-)
---
base-commit: ecacc9c8d3ed0f63065f4a1e94bfd8bf65a3ffaf
change-id: 20260605-vdso-arch-clockmodes-bfcaf9a2c848

Best regards,
--
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>