diff options
author | Paul E. McKenney | 2015-08-24 22:13:51 +0200 |
---|---|---|
committer | Paul E. McKenney | 2015-10-06 20:28:09 +0200 |
commit | 4f441a258f7badf752b3d9b04b675869ca4e751c (patch) | |
tree | 531c82fbc9b39c44e408d0503ff46d253bd63669 | |
parent | rcutorture: Fix module unwind when bad torture_type specified (diff) | |
download | kernel-qcow2-linux-4f441a258f7badf752b3d9b04b675869ca4e751c.tar.gz kernel-qcow2-linux-4f441a258f7badf752b3d9b04b675869ca4e751c.tar.xz kernel-qcow2-linux-4f441a258f7badf752b3d9b04b675869ca4e751c.zip |
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>
-rw-r--r-- | kernel/rcu/rcutorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index b74b56474e17..009b62c76dfa 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -695,7 +695,7 @@ static bool __maybe_unused torturing_tasks(void) #define RCUTORTURE_TASKS_OPS -static bool torturing_tasks(void) +static bool __maybe_unused torturing_tasks(void) { return false; } |