Re: [paulmck-rcu:dev.2025.11.13a 25/27] ERROR: modpost: "tasklist_lock" [kernel/rcu/rcutorture.ko] undefined!

From: Paul E. McKenney

Date: Tue Nov 18 2025 - 14:31:09 EST


On Tue, Nov 18, 2025 at 11:02:47AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2025.11.13a
> head: 38cc1fc7cc9d7c9ed5275c1e78256431da7721c5
> commit: 8b6753ddeaa69d04d6ff8b3bee0bf81a0607d396 [25/27] rcutorture: Add a textbook-style trivial preemptible RCU
> config: x86_64-randconfig-101-20251118 (https://download.01.org/0day-ci/archive/20251118/202511181007.iHxSV1IG-lkp@xxxxxxxxx/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511181007.iHxSV1IG-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/202511181007.iHxSV1IG-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> >> ERROR: modpost: "tasklist_lock" [kernel/rcu/rcutorture.ko] undefined!

Good catch, thank you! I moved the calling function out of the module
into the main kernel.

Thanx, Paul