Skip to content

Commit 612d362

Browse files
Davidlohr Buesogregkh
authored andcommitted
locking/mutex: Fix wrong comment for CONFIG_DEBUG_LOCK_ALLOC
[ Upstream commit babcde3 ] ... that endif block should be CONFIG_DEBUG_LOCK_ALLOC, not CONFIG_LOCKDEP. Fixes: 51d7a05 ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e658ed8 commit 612d362

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/mutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static inline void __mutex_init(struct mutex *lock, const char *name,
146146
{
147147
mutex_rt_init_generic(lock);
148148
}
149-
#endif /* !CONFIG_LOCKDEP */
149+
#endif /* !CONFIG_DEBUG_LOCK_ALLOC */
150150
#endif /* CONFIG_PREEMPT_RT */
151151

152152
#ifdef CONFIG_DEBUG_MUTEXES

0 commit comments

Comments
 (0)