[tip:timers/vdso 37/45] include/vdso/helpers.h:13:64: error: 'VDSO_CLOCKMODE_TIMENS' undeclared

From: kernel test robot

Date: Wed Mar 11 2026 - 08:54:58 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/vdso
head: f7178f159b2a36d070fd43b0d751e4e4415ec39e
commit: 912632a7fd4cc1eac2778828d92e8fe46939d6bd [37/45] vdso/datapage: Trim down unnecessary includes
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20260311/202603112006.tqQzVMDI-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260311/202603112006.tqQzVMDI-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603112006.tqQzVMDI-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from arch/x86/include/asm/vgtod.h:13,
from arch/x86/kernel/sys_ia32.c:49:
include/vdso/helpers.h: In function 'vdso_is_timens_clock':
>> include/vdso/helpers.h:13:64: error: 'VDSO_CLOCKMODE_TIMENS' undeclared (first use in this function)
13 | return IS_ENABLED(CONFIG_TIME_NS) && vc->clock_mode == VDSO_CLOCKMODE_TIMENS;
| ^~~~~~~~~~~~~~~~~~~~~
include/vdso/helpers.h:13:64: note: each undeclared identifier is reported only once for each function it appears in


vim +/VDSO_CLOCKMODE_TIMENS +13 include/vdso/helpers.h

00b26474c2f161 Vincenzo Frascino 2019-06-21 10
daa2b92d33a403 Thomas Weißschuh 2026-02-27 11 static __always_inline bool vdso_is_timens_clock(const struct vdso_clock *vc)
daa2b92d33a403 Thomas Weißschuh 2026-02-27 12 {
daa2b92d33a403 Thomas Weißschuh 2026-02-27 @13 return IS_ENABLED(CONFIG_TIME_NS) && vc->clock_mode == VDSO_CLOCKMODE_TIMENS;
daa2b92d33a403 Thomas Weißschuh 2026-02-27 14 }
daa2b92d33a403 Thomas Weißschuh 2026-02-27 15

:::::: The code at line 13 was first introduced by commit
:::::: daa2b92d33a4038123598aff55240ae3c54f870c vdso/gettimeofday: Add a helper to test if a clock is namespaced

:::::: TO: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki