summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2019-12-16 14:42:07 +0000
committerThomas Gleixner <tglx@linutronix.de>2020-01-09 18:03:24 +0100
commit8b3b54799b99de59d25a3947d539662f47300ced (patch)
tree7691b33cf7ea276832bdc34d6b4a7b7b3d6ab9f0 /kernel/irq
parent025af39b87dc4dc78de4e861ca8b88a1d5ba89f6 (diff)
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
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/irqdesc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 5b8fdd659e54..98a5f10d1900 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -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)
+ __releases(&desc->lock)
{
raw_spin_unlock_irqrestore(&desc->lock, flags);
if (bus)