summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-02-03 21:05:46 +0300
committerMichal Marek <mmarek@suse.com>2016-02-19 00:09:40 +0300
commitf75621c6ecadbd1802a7142fd346511cea05250a (patch)
tree85d732acfe3340b2292089f476f702155cd61c38
parent79ff2b3deae7db21e73f1e0add92c988135defd2 (diff)
downloadlinux-f75621c6ecadbd1802a7142fd346511cea05250a.tar.xz
coccinelle: bugon: reduce rule applicability
Rule r is only use in org or report mode, so only execute it in those cases. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Michal Marek <mmarek@suse.com>
-rw-r--r--scripts/coccinelle/misc/bugon.cocci2
1 files changed, 1 insertions, 1 deletions
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;
@@