DORMANTno replies

[PATCH] Coccinelle: array_size: reduce rule applicability

From: Julia Lawall <hidden>
Date: 2016-01-30 16:27:15
Also in: cocci, lkml
Subsystem: coccinelle/semantic patches (smpl), the rest · Maintainers: Julia Lawall, Nicolas Palix, Linus Torvalds

Rule r is only use in org or report mode, so only execute it in those
cases.

Signed-off-by: Julia Lawall <redacted>

---
 scripts/coccinelle/misc/array_size.cocci |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/coccinelle/misc/array_size.cocci b/scripts/coccinelle/misc/array_size.cocci
index 81e279c..6ec0571 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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help