Skip to content

Commit 330dd6d

Browse files
Sebastian Andrzej SiewiorKAGA-KOKO
authored andcommitted
hrtimer: Annotate hrtimer_cpu_base_.*_expiry() for sparse.
The two hrtimer_cpu_base_.*_expiry() functions are wrappers around the locking functions and sparse complains about the missing counterpart. Add sparse annotation to denote that this bevaviour 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/20240812105326.2240000-3-bigeasy@linutronix.de
1 parent 38cd4ce commit 330dd6d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/time/hrtimer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,11 +1351,13 @@ static void hrtimer_cpu_base_init_expiry_lock(struct hrtimer_cpu_base *base)
13511351
}
13521352

13531353
static void hrtimer_cpu_base_lock_expiry(struct hrtimer_cpu_base *base)
1354+
__acquires(&base->softirq_expiry_lock)
13541355
{
13551356
spin_lock(&base->softirq_expiry_lock);
13561357
}
13571358

13581359
static void hrtimer_cpu_base_unlock_expiry(struct hrtimer_cpu_base *base)
1360+
__releases(&base->softirq_expiry_lock)
13591361
{
13601362
spin_unlock(&base->softirq_expiry_lock);
13611363
}

0 commit comments

Comments
 (0)