summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-01-20 23:43:47 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-01-22 15:50:11 +0100
commiteb5a4d0a9ee976008d1add75e3d64545399e80a3 (patch)
tree514d7ebe79927342599ba4854a7fb0c9cdf5ff09 /kernel/time
parentMerge tag 'timers-v5.5-rc6' of https://git.linaro.org/people/daniel.lezcano/l... (diff)
downloadlinux-eb5a4d0a9ee976008d1add75e3d64545399e80a3.tar.xz
linux-eb5a4d0a9ee976008d1add75e3d64545399e80a3.zip
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 <jbi.octave@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20200120224347.51843-1-jbi.octave@gmail.com
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/hrtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index d8b62f93fc8d..3a609e7344f3 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -1477,7 +1477,7 @@ EXPORT_SYMBOL_GPL(hrtimer_active);
static void __run_hrtimer(struct hrtimer_cpu_base *cpu_base,
struct hrtimer_clock_base *base,
struct hrtimer *timer, ktime_t *now,
- unsigned long flags)
+ unsigned long flags) __must_hold(&cpu_base->lock)
{
enum hrtimer_restart (*fn)(struct hrtimer *);
int restart;