Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

locking/mutex: Rename mutex_init_lockep()

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

authored by

Davidlohr Bueso and committed by
Peter Zijlstra
8b65eb52 6de23f81

+4 -4
+2 -2
include/linux/mutex.h
··· 87 87 struct mutex mutexname = __MUTEX_INITIALIZER(mutexname) 88 88 89 89 #ifdef CONFIG_DEBUG_LOCK_ALLOC 90 - void mutex_init_lockep(struct mutex *lock, const char *name, struct lock_class_key *key); 90 + void mutex_init_lockdep(struct mutex *lock, const char *name, struct lock_class_key *key); 91 91 92 92 static inline void __mutex_init(struct mutex *lock, const char *name, 93 93 struct lock_class_key *key) 94 94 { 95 - mutex_init_lockep(lock, name, key); 95 + mutex_init_lockdep(lock, name, key); 96 96 } 97 97 #else 98 98 extern void mutex_init_generic(struct mutex *lock);
+2 -2
kernel/locking/mutex.c
··· 171 171 172 172 #else /* !CONFIG_DEBUG_LOCK_ALLOC */ 173 173 174 - void mutex_init_lockep(struct mutex *lock, const char *name, struct lock_class_key *key) 174 + void mutex_init_lockdep(struct mutex *lock, const char *name, struct lock_class_key *key) 175 175 { 176 176 __mutex_init_generic(lock); 177 177 ··· 181 181 debug_check_no_locks_freed((void *)lock, sizeof(*lock)); 182 182 lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP); 183 183 } 184 - EXPORT_SYMBOL(mutex_init_lockep); 184 + EXPORT_SYMBOL(mutex_init_lockdep); 185 185 #endif /* !CONFIG_DEBUG_LOCK_ALLOC */ 186 186 187 187 static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag)