]> git.baikalelectronics.ru Git - kernel.git/commit
Coccinelle: misc: Improve the matching of rules
authorVaishali Thakkar <vaishali.thakkar@oracle.com>
Wed, 23 Nov 2016 08:46:39 +0000 (14:16 +0530)
committerMichal Marek <mmarek@suse.com>
Sun, 11 Dec 2016 11:08:26 +0000 (12:08 +0100)
commite6901b2135226697b637788f17408865e47f95c7
treeded14a63d661f7f2ac911f271d16b0ff3bea8e70
parent1336016ef10f245275f0fb4ffccd2cddb1a17720
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.

Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/coccinelle/misc/irqf_oneshot.cocci