History

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.

Jérémy Lefaure committed 8 years ago

Commit cb00a4f1 parent 5e2d9da1 file · +2 −2Browse files

Unified · Split

scripts/coccinelle/misc/array_size.cocci+2−2
@@ -72,13 +72,13 @@ position p; · 71 unmodified lines
72 (sizeof(E)@p /sizeof(T))72 (sizeof(E)@p /sizeof(T))
73)73)
74 74
75@script:python depends on i&&org@75@script:python depends on org@
76p << r.p;76p << r.p;
77@@77@@
78 78
79coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE")79coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE")
80 80
81@script:python depends on i&&report@81@script:python depends on report@
82p << r.p;82p << r.p;
83@@83@@
84 84