Skip to content

Commit e658ed8

Browse files
Davidlohr Buesogregkh
authored andcommitted
locking/mutex: Rename mutex_init_lockep()
[ Upstream commit 8b65eb5 ] Typo, this wants to be _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-2-dave@stgolabs.net Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 60bfb56 commit e658ed8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/linux/mutex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ do { \
8787
struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
8888

8989
#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);
9191

9292
static inline void __mutex_init(struct mutex *lock, const char *name,
9393
struct lock_class_key *key)
9494
{
95-
mutex_init_lockep(lock, name, key);
95+
mutex_init_lockdep(lock, name, key);
9696
}
9797
#else
9898
extern void mutex_init_generic(struct mutex *lock);

kernel/locking/mutex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static __always_inline bool __mutex_unlock_fast(struct mutex *lock)
171171

172172
#else /* !CONFIG_DEBUG_LOCK_ALLOC */
173173

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)
175175
{
176176
__mutex_init_generic(lock);
177177

@@ -181,7 +181,7 @@ void mutex_init_lockep(struct mutex *lock, const char *name, struct lock_class_k
181181
debug_check_no_locks_freed((void *)lock, sizeof(*lock));
182182
lockdep_init_map_wait(&lock->dep_map, name, key, 0, LD_WAIT_SLEEP);
183183
}
184-
EXPORT_SYMBOL(mutex_init_lockep);
184+
EXPORT_SYMBOL(mutex_init_lockdep);
185185
#endif /* !CONFIG_DEBUG_LOCK_ALLOC */
186186

187187
static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag)

0 commit comments

Comments
 (0)