Re: arch/riscv/kernel/alternative.c:208:6: error: use of undeclared identifier 'compat__vdso_alternatives_start_offset'; did you mean '__vdso_alternatives_start_cfi_offset'?

From: Thomas Weißschuh

Date: Tue Oct 13 2026 - 15:52:08 EST


On Tue, Oct 13, 2026 at 06:32:32PM +0200, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
> commit: 42cd1e1fc8995ec7ed5cc61957fc503eb065e0eb riscv: alternative: Also patch the compat vDSO
> date: 10 weeks ago
> config: riscv-randconfig-r2104-20261013 (https://download.01.org/0day-ci/archive/20261013/202610131828.0hZsGdvF-lkp@xxxxxxxxx/config)
> compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project ce2a4984a3f43327a2b7c40baa74907bc10eb899)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261013/202610131828.0hZsGdvF-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
> | Fixes: 42cd1e1fc899 ("riscv: alternative: Also patch the compat vDSO")
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202610131828.0hZsGdvF-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> arch/riscv/kernel/alternative.c:198:6: error: use of undeclared identifier '__vdso_alternatives_start_offset'; did you mean '__vdso_alternatives_start_cfi_offset'?
> 198 | __vdso_alternatives_start_offset,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | __vdso_alternatives_start_cfi_offset

Same as https://lore.kernel.org/lkml/20261013180342-b562676b-7fd8-433b-8d3f-a6daef549a5e@xxxxxxxxxxxxx/

(...)