From 0d906e763cd3ceee019da57dc054751a3c615e18 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Wed, 3 Feb 2016 19:05:46 +0100 Subject: [PATCH] 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) --- scripts/coccinelle/misc/bugon.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; @@ -- 2.34.1