Skip to content

Commit

Permalink
genirq: Add missing __must_hold() sparse annotation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jules Irenge authored and Thomas Gleixner committed Jan 9, 2020
1 parent 8b3b547 commit 099368b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/irq/spurious.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 099368b

Please sign in to comment.