Skip to content

Commit

Permalink
Coccinelle: array_size: report even if include is missing
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
Jérémy Lefaure authored and masahir0y committed Jan 16, 2018
1 parent 5e2d9da commit cb00a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/coccinelle/misc/array_size.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -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;
@@
Expand Down

0 comments on commit cb00a4f

Please sign in to comment.