[PATCH 0/7] vDSO: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()
Thomas Weißschuh <[email protected]> Thu, 09 Jul 2026 13:32:36 +0200
| Newsgroups | gmane.linux.ports.riscv,gmane.linux.kernel.cross-arch,gmane.linux.kernel,gmane.linux.kbuild.devel,gmane.linux.ports.mips,gmane.linux.ports.arm.kernel |
|---|---|
| Message-ID | <[email protected]> |
Provide dummy declarations of the VDSO_CLOCKMODE_* constants and use those to replace some ugly ifdeffery with cleaner IS_ENABLED() checks. Signed-off-by: Thomas Weißschuh <[email protected]> --- Thomas Weißschuh (7): kbuild: support generated asm-headers in subdirectories vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY MIPS: csrc-r4k: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED() clocksource/drivers/mips-gic-timer: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED() clocksource/drivers/arm_arch_timer: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED() clocksource/drivers/timer-riscv: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED() LoongArch: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED() arch/loongarch/kernel/time.c | 5 ++--- arch/mips/kernel/csrc-r4k.c | 4 +--- drivers/clocksource/arm_arch_timer.c | 7 ++----- drivers/clocksource/mips-gic-timer.c | 5 ++--- drivers/clocksource/timer-riscv.c | 7 ++----- include/asm-generic/Kbuild | 1 + include/asm-generic/vdso/clocksource.h | 0 include/vdso/clocksource.h | 7 +++++-- scripts/Makefile.asm-headers | 11 +++++------ 9 files changed, 20 insertions(+), 27 deletions(-) --- base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482 change-id: 20260605-vdso-arch-clockmodes-bfcaf9a2c848 Best regards, -- Thomas Weißschuh <[email protected]> _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv