]> Git Repo - linux.git/commitdiff
rcu: Implement lockdep_rcu_enabled for !CONFIG_DEBUG_LOCK_ALLOC
authorJohn Ogness <[email protected]>
Mon, 7 Nov 2022 14:15:59 +0000 (15:21 +0106)
committerPaul E. McKenney <[email protected]>
Wed, 9 Nov 2022 17:29:06 +0000 (09:29 -0800)
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 <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
include/linux/rcupdate.h

index 08605ce7379d7b0826cadaff8e6c520292a2fdfd..65178c40ab6fdea47d0779449750cb2e435e9d85 100644 (file)
@@ -340,6 +340,11 @@ static inline int rcu_read_lock_any_held(void)
        return !preemptible();
 }
 
+static inline int debug_lockdep_rcu_enabled(void)
+{
+       return 0;
+}
+
 #endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */
 
 #ifdef CONFIG_PROVE_RCU
This page took 0.059782 seconds and 4 git commands to generate.