aboutsummaryrefslogtreecommitdiffstats
path: root/lib/spinlock_debug.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2013-09-01 02:23:29 +0000
committerPaul E. McKenney <[email protected]>2013-09-23 16:15:27 +0000
commit289828e62de0334a0d01c0f65df91cd47d3a9e05 (patch)
tree8bda5b11aa9e8bfcd2e176b7e12b365bfa7b79fe /lib/spinlock_debug.c
parentrcu: Replace __get_cpu_var() uses (diff)
downloadkernel-289828e62de0334a0d01c0f65df91cd47d3a9e05.tar.gz
kernel-289828e62de0334a0d01c0f65df91cd47d3a9e05.zip
rcu: Silence unused-variable warnings
The "idle" variable in both rcu_eqs_enter_common() and rcu_eqs_exit_common() is only used in a WARN_ON_ONCE(). If the kernel is built disabling WARN_ON_ONCE(), the compiler will complain (rightly) that "idle" is unused. This commit therefore adds a __maybe_unused to the declaration of both variables. Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions