rcutorture: Fix unused-function warning for torturing_tasks()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 24 Aug 2015 20:13:51 +0000 (13:13 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Oct 2015 18:28:09 +0000 (11:28 -0700)
commit4f441a258f7badf752b3d9b04b675869ca4e751c
tree531c82fbc9b39c44e408d0503ff46d253bd63669
parent889d487a26de4bcd1a0a668754bcbce893969edf
rcutorture: Fix unused-function warning for torturing_tasks()

The torturing_tasks() function is used only in kernels built with
CONFIG_PROVE_RCU=y, so the second definition can result in unused-function
compiler warnings.  This commit adds __maybe_unused to suppress these
warnings.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/rcutorture.c