From: "tip-bot2 for Jules Irenge" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Jules Irenge <jbi.octave@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>, x86 <x86@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [tip: timers/core] hrtimer: Add missing sparse annotation for __run_timer()
Date: Wed, 22 Jan 2020 14:54:51 -0000 [thread overview]
Message-ID: <157970489138.396.2731472419371278003.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20200120224347.51843-1-jbi.octave@gmail.com>
The following commit has been merged into the timers/core branch of tip:
Commit-ID: eb5a4d0a9ee976008d1add75e3d64545399e80a3
Gitweb: https://git.kernel.org/tip/eb5a4d0a9ee976008d1add75e3d64545399e80a3
Author: Jules Irenge <jbi.octave@gmail.com>
AuthorDate: Mon, 20 Jan 2020 22:43:47
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Wed, 22 Jan 2020 15:50:11 +01:00
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
---
kernel/time/hrtimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index d8b62f9..3a609e7 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;
prev parent reply other threads:[~2020-01-22 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-20 22:43 [PATCH 5/5] time: Add missing " Jules Irenge
2020-01-22 14:54 ` tip-bot2 for Jules Irenge [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=157970489138.396.2731472419371278003.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=jbi.octave@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®