Skip to content

Commit cb00a4f

Browse files
Jérémy Lefauremasahir0y
authored andcommitted
Coccinelle: array_size: report even if include is missing
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>
1 parent 5e2d9da commit cb00a4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/coccinelle/misc/array_size.cocci‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ position p;
7272
(sizeof(E)@p /sizeof(T))
7373
)
7474

75-
@script:python depends on i&&org@
75+
@script:python depends on org@
7676
p << r.p;
7777
@@
7878
7979
coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE")
8080
81-
@script:python depends on i&&report@
81+
@script:python depends on report@
8282
p << r.p;
8383
@@
8484

0 commit comments

Comments
 (0)