Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Sebastian Andrzej Siewior and committed by
Thomas Gleixner
330dd6d9 38cd4cee

+2
+2
kernel/time/hrtimer.c
··· 1351 1351 } 1352 1352 1353 1353 static void hrtimer_cpu_base_lock_expiry(struct hrtimer_cpu_base *base) 1354 + __acquires(&base->softirq_expiry_lock) 1354 1355 { 1355 1356 spin_lock(&base->softirq_expiry_lock); 1356 1357 } 1357 1358 1358 1359 static void hrtimer_cpu_base_unlock_expiry(struct hrtimer_cpu_base *base) 1360 + __releases(&base->softirq_expiry_lock) 1359 1361 { 1360 1362 spin_unlock(&base->softirq_expiry_lock); 1361 1363 }