diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2019-12-16 17:42:07 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-01-09 20:03:24 +0300 |
commit | 8b3b54799b99de59d25a3947d539662f47300ced (patch) | |
tree | 7691b33cf7ea276832bdc34d6b4a7b7b3d6ab9f0 | |
parent | 025af39b87dc4dc78de4e861ca8b88a1d5ba89f6 (diff) | |
download | linux-8b3b54799b99de59d25a3947d539662f47300ced.tar.xz |
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
-rw-r--r-- | kernel/irq/irqdesc.c | 1 |
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) |