Skip to content

Commit 099368b

Browse files
irengeKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8b3b547 commit 099368b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/irq/spurious.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static atomic_t irq_poll_active;
3434
* true and let the handler run.
3535
*/
3636
bool irq_wait_for_poll(struct irq_desc *desc)
37+
__must_hold(&desc->lock)
3738
{
3839
if (WARN_ONCE(irq_poll_cpu == smp_processor_id(),
3940
"irq poll in progress on cpu %d for irq %d\n",

0 commit comments

Comments
 (0)