Skip to content

Commit 8b3b547

Browse files
irengeKAGA-KOKO
authored andcommitted
genirq: Add missing __releases() sparse annotation
Add __releases() annotation to address the following sparse warning: warning: context imbalance in __irq_put_desc_unlock() - 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 025af39 commit 8b3b547

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/irq/irqdesc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ __irq_get_desc_lock(unsigned int irq, unsigned long *flags, bool bus,
891891
}
892892

893893
void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus)
894+
__releases(&desc->lock)
894895
{
895896
raw_spin_unlock_irqrestore(&desc->lock, flags);
896897
if (bus)

0 commit comments

Comments
 (0)