提交 cb00a4f3 编写于 作者: J Jérémy Lefaure 提交者: Masahiro Yamada

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: NJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Acked-by: NJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 5e2d9da5
......@@ -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;
@@
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册