coccinelle: irqf_oneshot: reduce the severity due to false positives
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 23 Apr 2021 10:00:33 +0000 (12:00 +0200)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 1 May 2021 19:23:57 +0000 (21:23 +0200)
commit5d2db9bb5f8a850d037983f0df72ad59cefa9e3d
treed2f762fa9f4057d141b8dc156627fdc6da4b00d7
parent7845daa8bd72efa8bbc1de122edfce6e058bbe41
coccinelle: irqf_oneshot: reduce the severity due to false positives

The IRQF_ONESHOT should be present for threaded IRQ using default
primary handler.  However intetrupt of many child devices, e.g. children
of MFD, is nested thus the IRQF_ONESHOT is not needed.  The coccinelle
message about error misleads submitters and reviewers about the severity
of the issue, so make it a warning and mention possible false positive.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccinelle/misc/irqf_oneshot.cocci