scripts/coccinelle: Find threaded IRQs requests which are missing IRQF_ONESHOT
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 1 Jul 2012 11:17:07 +0000 (13:17 +0200)
committerMichal Marek <mmarek@suse.cz>
Fri, 13 Jul 2012 13:57:31 +0000 (15:57 +0200)
commitf1f455047940e59b3aea102e17ae4c0f9286aa76
treeccb569ee413f5e0d0c010d7c501984d47402c0cd
parent5f011d715984543f47ca5bf1967857a9f36f7264
scripts/coccinelle: Find threaded IRQs requests which are missing IRQF_ONESHOT

Since commit 1c6c69525b ("genirq: Reject bogus threaded irq requests") threaded
IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise
the request will fail. This semantic patch will help to statically identify
(and fix) such cases.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/misc/irqf_oneshot.cocci [new file with mode: 0644]