UPSTREAM: Coccinelle: misc: Improve the matching of rules
authorVaishali Thakkar <vaishali.thakkar@oracle.com>
Wed, 23 Nov 2016 08:46:39 +0000 (14:16 +0530)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 12 Jul 2017 13:17:10 +0000 (21:17 +0800)
commitfd779ebca75af56883af58c1cc5439b68587f9f9
tree98c95c5b6c39ffd886cb91d4f846cb83087c8dd8
parentd274d003e309cc7c948356c53a030a9966931a94
UPSTREAM: Coccinelle: misc: Improve the matching of rules

Currently because of the left associativity of the operators, pattern
IRQF_ONESHOT | flags does not match with the pattern when we have more
than one flag after the disjunction. This eventually results in giving
false positives by the script. This patch eliminates these FPs by
improving the rule.

Change-Id: I1043d1e6fca848997982305cd8fb3ac2706e7f1f
Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit dca24c4544d96989f521b5aa49fd44ae0ae5a5b6)
scripts/coccinelle/misc/irqf_oneshot.cocci