rcu: Implement lockdep_rcu_enabled for !CONFIG_DEBUG_LOCK_ALLOC
authorJohn Ogness <john.ogness@linutronix.de>
Mon, 7 Nov 2022 14:15:59 +0000 (15:21 +0106)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 9 Nov 2022 17:29:06 +0000 (09:29 -0800)
commitf733615e39aa2d6ddeef33b7b2c9aa6a5a2c2785
tree0465eb8d503f14866e875d760c6b5ec293194bb2
parente29a4915db1480f96e0bc2e928699d086a71f43c
rcu: Implement lockdep_rcu_enabled for !CONFIG_DEBUG_LOCK_ALLOC

Provide an implementation for debug_lockdep_rcu_enabled() when
CONFIG_DEBUG_LOCK_ALLOC is not enabled. This allows code to check
if rcu lockdep debugging is available without needing an extra
check if CONFIG_DEBUG_LOCK_ALLOC is enabled.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate.h