From: Jules Irenge Date: Mon, 16 Dec 2019 14:42:07 +0000 (+0000) Subject: genirq: Add missing __releases() sparse annotation X-Git-Tag: v5.6-rc1~175^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b3b54799b99de59d25a3947d539662f47300ced;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20191216144208.29852-1-jbi.octave@gmail.com --- diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 5b8fdd659e54a..98a5f10d19002 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)