Skip to content

Commit eb5a4d0

Browse files
irengeKAGA-KOKO
authored andcommitted
hrtimer: Add missing sparse annotation for __run_timer()
Sparse reports a warning at __run_hrtimer() |warning: context imbalance in __run_hrtimer() - unexpected unlock Add the missing must_hold() annotation. Signed-off-by: Jules Irenge <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a67ca89 commit eb5a4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/hrtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ EXPORT_SYMBOL_GPL(hrtimer_active);
14771477
static void __run_hrtimer(struct hrtimer_cpu_base *cpu_base,
14781478
struct hrtimer_clock_base *base,
14791479
struct hrtimer *timer, ktime_t *now,
1480-
unsigned long flags)
1480+
unsigned long flags) __must_hold(&cpu_base->lock)
14811481
{
14821482
enum hrtimer_restart (*fn)(struct hrtimer *);
14831483
int restart;

0 commit comments

Comments
 (0)