From: Jules Irenge Date: Mon, 16 Dec 2019 14:42:08 +0000 (+0000) Subject: genirq: Add missing __must_hold() sparse annotation X-Git-Tag: v5.6-rc1~175^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=099368bb10c0e340f0b236b169e8b13235e0907c;p=thirdparty%2Flinux.git 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 Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20191216144208.29852-2-jbi.octave@gmail.com --- diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index 2ed97a7c9b2a6..f865e5f4d3825 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",