Coccinelle: array_size: report even if include is missing
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Fri, 29 Dec 2017 18:14:23 +0000 (19:14 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 16 Jan 2018 14:38:52 +0000 (23:38 +0900)
Rule r does not depend on rule i (which is the include of
linux/kernel.h) so the output should not depend on i in
org and report mode.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/misc/array_size.cocci

index 6ec0571..09520f0 100644 (file)
@@ -72,13 +72,13 @@ position p;
  (sizeof(E)@p /sizeof(T))
 )
 
-@script:python depends on i&&org@
+@script:python depends on org@
 p << r.p;
 @@
 
 coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE")
 
-@script:python depends on i&&report@
+@script:python depends on report@
 p << r.p;
 @@