From: Julia Lawall Date: Wed, 3 Feb 2016 18:05:46 +0000 (+0100) Subject: UPSTREAM: coccinelle: bugon: reduce rule applicability X-Git-Tag: release-20171130_firefly~4^2~222 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0d906e763cd3ceee019da57dc054751a3c615e18;p=firefly-linux-kernel-4.4.55.git UPSTREAM: coccinelle: bugon: reduce rule applicability Rule r is only use in org or report mode, so only execute it in those cases. Change-Id: If04125246bc21159b37d41c67a5b2556ec8ede3a Signed-off-by: Julia Lawall Signed-off-by: Michal Marek Signed-off-by: Huang, Tao (cherry picked from commit f75621c6ecadbd1802a7142fd346511cea05250a) --- diff --git a/scripts/coccinelle/misc/bugon.cocci b/scripts/coccinelle/misc/bugon.cocci index 27c97f1f2767..741586094abe 100644 --- a/scripts/coccinelle/misc/bugon.cocci +++ b/scripts/coccinelle/misc/bugon.cocci @@ -40,7 +40,7 @@ expression e; // For org and report mode //---------------------------------------------------------- -@r@ +@r depends on (org || report)@ expression e; position p; @@