Re: [PATCH v4 2/7] vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY

"Arnd Bergmann" <[email protected]> Fri, 24 Jul 2026 17:31:16 +0200
Newsgroups org.kernel.vger.linux-mips,dev.linux.lists.loongarch,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-arch,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Fri, Jul 24, 2026, at 15:36, Thomas Wei=C3=9Fschuh wrote:
> Some code, for example clocksource drivers, may want to use the vDSO
> clockmode constants even when CONFIG_GENERIC_GETTIMEOFDAY=3Dn.
> But the symbols are completely hidden in that case, making ugly
> ifdeffery necessary.
>
> Always provide the enum definitions.
>
> As not all architectures provide asm/vdso/clocksource.h,
> provide an empty stub in asm-generic for it.
>
> Signed-off-by: Thomas Wei=C3=9Fschuh <[email protected]>

Acked-by: Arnd Bergmann <[email protected]>