Re: [tip:locking/core 5/5] kernel/locking/rtmutex_api.c:93:1: warning: expecting rt_mutex 'lock' to be held at the end of function

From: Bart Van Assche

Date: Wed May 06 2026 - 00:13:58 EST


On 5/5/26 6:28 PM, kernel test robot wrote:
kernel/locking/rtmutex_api.c:93:1: warning: expecting rt_mutex 'lock' to be held at the end of function [-Wthread-safety-analysis]
93 | }
| ^
kernel/locking/rtmutex_api.c:90:14: note: rt_mutex acquired here
90 | void __sched rt_mutex_lock(struct rt_mutex *lock)
| ^
1 warning generated.

The above refers to the code under "#else /* !CONFIG_DEBUG_LOCK_ALLOC */". I will include a fix when I repost my patch.

Thanks,

Bart.