summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-01-30 17:13:54 +0100
committerMichal Marek <mmarek@suse.com>2016-02-18 22:06:28 +0100
commitc7eaa8873b3e50667e0b6529141139147f34748e (patch)
tree6ec81a098efd0fdbd3aad6695abec219e977c975 /scripts/coccinelle
parent8f551befa2269dc244bcfbcad795132f833cb71c (diff)
downloadlinux-c7eaa8873b3e50667e0b6529141139147f34748e.tar.bz2
Coccinelle: array_size: 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>
Diffstat (limited to 'scripts/coccinelle')
-rw-r--r--scripts/coccinelle/misc/array_size.cocci2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/misc/array_size.cocci b/scripts/coccinelle/misc/array_size.cocci
index 81e279cd347b..6ec05710b017 100644
--- a/scripts/coccinelle/misc/array_size.cocci
+++ b/scripts/coccinelle/misc/array_size.cocci
@@ -59,7 +59,7 @@ T[] E;
// For org and report mode
//----------------------------------------------------------
-@r@
+@r depends on (org || report)@
type T;
T[] E;
position p;