rcu: Use IS_ENABLED() for Tiny RCU rcutorture definitions

The rcutorture_gather_gp_seqs() and rcutorture_format_gp_seqs() functions
are currently guarded by "#ifdef CONFIG_RCU_TORTURE_TEST".  This fails
in kernels built with CONFIG_RCU_TINY=y and CONFIG_RCU_TORTURE_TEST=m
because in that case there is no CONFIG_RCU_TORTURE_TEST cpp macro.
There is instead a CONFIG_RCU_TORTURE_TEST_MODULE cpp macro.

This commit uses "#if IS_ENABLED(CONFIG_RCU_TORTURE_TEST)" to correctly
handle modular as well as built-in rcutorture for kernels using Tiny RCU.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 file changed