From: Davidlohr Bueso Date: Tue, 17 Feb 2026 19:15:11 +0000 (-0800) Subject: locking/mutex: Fix wrong comment for CONFIG_DEBUG_LOCK_ALLOC X-Git-Tag: v7.1-rc1~199^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=babcde3be8c9148aa60a14b17831e8f249854963;p=thirdparty%2Fkernel%2Flinux.git locking/mutex: Fix wrong comment for CONFIG_DEBUG_LOCK_ALLOC ... 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 Signed-off-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260217191512.1180151-3-dave@stgolabs.net --- diff --git a/include/linux/mutex.h b/include/linux/mutex.h index 8126da9590886..f57d2a97da57f 100644 --- a/include/linux/mutex.h +++ b/include/linux/mutex.h @@ -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