OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
025af39
)
genirq: Add missing __releases() sparse annotation
author
Jules Irenge
<jbi.octave@gmail.com>
Mon, 16 Dec 2019 14:42:07 +0000
(14:42 +0000)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 9 Jan 2020 17:03:24 +0000
(18:03 +0100)
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
kernel/irq/irqdesc.c
patch
|
blob
|
history
diff --git
a/kernel/irq/irqdesc.c
b/kernel/irq/irqdesc.c
index
5b8fdd6
..
98a5f10
100644
(file)
--- 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)