]> www.infradead.org Git - users/dwmw2/linux.git/commit
locking/rt: Annotate unlock followed by lock for sparse.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 12 Aug 2024 10:39:05 +0000 (12:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Oct 2024 09:27:02 +0000 (11:27 +0200)
commit77abd3b7d9bf384306872b6201b1dfeb1e899892
treebdfc5b6dd2413e0996b81bf5737c8604804d1c35
parent168660b826a77fda28235e0b0b3027041d6a5240
locking/rt: Annotate unlock followed by lock for sparse.

rt_mutex_slowlock_block() and rtlock_slowlock_locked() both unlock
lock::wait_lock and then lock it later. This is unusual and sparse
complains about it.

Add __releases() + __acquires() annotation to mark that it is expected.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240812104200.2239232-5-bigeasy@linutronix.de
kernel/locking/rtmutex.c