]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
locking/mutex: Rename mutex_init_lockep()
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 17 Feb 2026 19:15:10 +0000 (11:15 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 23 Feb 2026 10:19:15 +0000 (11:19 +0100)
Typo, this wants to be _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-2-dave@stgolabs.net
include/linux/mutex.h
kernel/locking/mutex.c

index ecaa0440f6ec48a7c36b852d8e6509514483d2a4..8126da959088602071d84ab48783a29ac308d7ed 100644 (file)
@@ -87,12 +87,12 @@ do {                                                                        \
        struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
 
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
-void mutex_init_lockep(struct mutex *lock, const char *name, struct lock_class_key *key);
+void mutex_init_lockdep(struct mutex *lock, const char *name, struct lock_class_key *key);
 
 static inline void __mutex_init(struct mutex *lock, const char *name,
                                struct lock_class_key *key)
 {
-       mutex_init_lockep(lock, name, key);
+       mutex_init_lockdep(lock, name, key);
 }
 #else
 extern void mutex_init_generic(struct mutex *lock);
index 2a1d165b3167e25e57ac08f988a2705141f1a2b4..c867f6c15530d59354c643502e3ca8946d203e5c 100644 (file)
@@ -171,7 +171,7 @@ static __always_inline bool __mutex_unlock_fast(struct mutex *lock)
 
 #else /* !CONFIG_DEBUG_LOCK_ALLOC */
 
-void mutex_init_lockep(struct mutex *lock, const char *name, struct lock_class_key *key)
+void mutex_init_lockdep(struct mutex *lock, const char *name, struct lock_class_key *key)
 {
        __mutex_init_generic(lock);
 
@@ -181,7 +181,7 @@ void mutex_init_lockep(struct mutex *lock, const char *name, struct lock_class_k
        debug_check_no_locks_freed((void *)lock, sizeof(*lock));
        lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP);
 }
-EXPORT_SYMBOL(mutex_init_lockep);
+EXPORT_SYMBOL(mutex_init_lockdep);
 #endif /* !CONFIG_DEBUG_LOCK_ALLOC */
 
 static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag)