Re: [tip:locking/core 27/43] ld.lld: error: undefined symbol: _raw_write_trylock

From: Marco Elver

Date: Tue Feb 03 2026 - 18:00:59 EST


On Tue, 3 Feb 2026 at 14:27, kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> head: 451c3a0356099483218535aed17fcf94ab5764a3
> commit: e4588c25c9d122b5847b88e18b184404b6959160 [27/43] compiler-context-analysis: Remove __cond_lock() function-like helper
> config: s390-randconfig-r051-20260203 (https://download.01.org/0day-ci/archive/20260203/202602032101.dbxRfsWO-lkp@xxxxxxxxx/config)
> compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/202602032101.dbxRfsWO-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/202602032101.dbxRfsWO-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> >> ld.lld: error: undefined symbol: _raw_write_trylock
> >>> referenced by rwlock_api_smp.h:48 (include/linux/rwlock_api_smp.h:48)
> >>> lib/test_context-analysis.o:(test_write_trylock_extra) in archive vmlinux.a
> >>> referenced by rwlock_api_smp.h:48 (include/linux/rwlock_api_smp.h:48)
> >>> lib/test_context-analysis.o:(test_write_trylock_extra) in archive vmlinux.a

I think this should fix it (and hopefully not break anything else):
https://lore.kernel.org/all/20260203225114.3493538-1-elver@xxxxxxxxxx/