]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/rt: Add sparse annotation PREEMPT_RT's sleeping locks.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 12 Aug 2024 10:39:02 +0000 (12:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Oct 2024 09:27:01 +0000 (11:27 +0200)
commit52e0874fc16bd26e9ea1871e30ffb2c6dff187cf
tree8443ea0757a21194752d396e3401b8d88b96de0f
parent2628cbd03924b91a360f72117a9b9c78cfd050e7
locking/rt: Add sparse annotation PREEMPT_RT's sleeping locks.

The sleeping locks on PREEMPT_RT (rt_spin_lock() and friends) lack
sparse annotation. Therefore a missing spin_unlock() won't be spotted by
sparse in a PREEMPT_RT build while it is noticed on a !PREEMPT_RT build.

Add the __acquires/__releases macros to the lock/ unlock functions. The
trylock functions already use the __cond_lock() wrapper.

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-2-bigeasy@linutronix.de
include/linux/rwlock_rt.h
include/linux/spinlock_rt.h