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 <jbi.octave@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20191216144208.29852-1-jbi.octave@gmail.com
This commit is contained in:
parent
025af39b87
commit
8b3b54799b
|
@ -891,6 +891,7 @@ __irq_get_desc_lock(unsigned int irq, unsigned long *flags, bool bus,
|
||||||
}
|
}
|
||||||
|
|
||||||
void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus)
|
void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus)
|
||||||
|
__releases(&desc->lock)
|
||||||
{
|
{
|
||||||
raw_spin_unlock_irqrestore(&desc->lock, flags);
|
raw_spin_unlock_irqrestore(&desc->lock, flags);
|
||||||
if (bus)
|
if (bus)
|
||||||
|
|
Loading…
Reference in New Issue