]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
locking/mutex: Fix wrong comment for CONFIG_DEBUG_LOCK_ALLOC
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 17 Feb 2026 19:15:11 +0000 (11:15 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 23 Feb 2026 10:19:16 +0000 (11:19 +0100)
... that endif block should be CONFIG_DEBUG_LOCK_ALLOC, not
CONFIG_LOCKDEP.

Fixes: 51d7a054521d ("locking/mutex: Redo __mutex_init() to reduce generated code size")
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260217191512.1180151-3-dave@stgolabs.net
include/linux/mutex.h

index 8126da959088602071d84ab48783a29ac308d7ed..f57d2a97da57fd254e1fb7c0a0373dc533ab5dc7 100644 (file)
@@ -146,7 +146,7 @@ static inline void __mutex_init(struct mutex *lock, const char *name,
 {
        mutex_rt_init_generic(lock);
 }
-#endif /* !CONFIG_LOCKDEP */
+#endif /* !CONFIG_DEBUG_LOCK_ALLOC */
 #endif /* CONFIG_PREEMPT_RT */
 
 #ifdef CONFIG_DEBUG_MUTEXES