summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2019-12-16 14:42:08 +0000
committerThomas Gleixner <tglx@linutronix.de>2020-01-09 18:03:37 +0100
commit099368bb10c0e340f0b236b169e8b13235e0907c (patch)
treeb2bf84cb12e58c3285aaaa225b297cd72825920d /kernel/irq
parent8b3b54799b99de59d25a3947d539662f47300ced (diff)
genirq: Add missing __must_hold() sparse annotation
Add __must_hold() annotation to address the following sparse warning: warning: context imbalance in irq_wait_for_poll - unexpected unlock Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20191216144208.29852-2-jbi.octave@gmail.com
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/spurious.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index 2ed97a7c9b2a..f865e5f4d382 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -34,6 +34,7 @@ static atomic_t irq_poll_active;
* true and let the handler run.
*/
bool irq_wait_for_poll(struct irq_desc *desc)
+ __must_hold(&desc->lock)
{
if (WARN_ONCE(irq_poll_cpu == smp_processor_id(),
"irq poll in progress on cpu %d for irq %d\n",