Re: [rcu:dev.2020.11.10a 39/46] ERROR: modpost: "get_state_synchronize_srcu" undefined!

From: Paul E. McKenney
Date: Sun Nov 15 2020 - 19:20:38 EST


On Mon, Nov 16, 2020 at 07:25:48AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.11.10a
> head: 1bc2f285f9c940176cc2c231db1372d5b2f0c635
> commit: 7c1d4bacb30f91a0962490cb9db98371aef1f4d6 [39/46] rcutorture: Add initial test for ->get_gp_state and ->poll_gp_state
> config: x86_64-randconfig-s022-20201115 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
> reproduce:
> # apt-get install sparse
> # sparse version: v0.6.3-107-gaf3512a6-dirty
> # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=7c1d4bacb30f91a0962490cb9db98371aef1f4d6
> git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
> git fetch --no-tags rcu dev.2020.11.10a
> git checkout 7c1d4bacb30f91a0962490cb9db98371aef1f4d6
> # save the attached .config to linux build tree
> make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> >> ERROR: modpost: "get_state_synchronize_srcu" [kernel/rcu/rcutorture.ko] undefined!
> >> ERROR: modpost: "start_poll_synchronize_srcu" [kernel/rcu/rcutorture.ko] undefined!
> >> ERROR: modpost: "poll_state_synchronize_srcu" [kernel/rcu/rcutorture.ko] undefined!

Good catch, fixed, thank you!

Thanx, Paul