2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 09:43:59 +08:00

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>
This commit is contained in:
Jérémy Lefaure 2017-12-29 19:14:23 +01:00 committed by Masahiro Yamada
parent 5e2d9da5b9
commit cb00a4f3db

View File

@ -72,13 +72,13 @@ position p;
(sizeof(E)@p /sizeof(T)) (sizeof(E)@p /sizeof(T))
) )
@script:python depends on i&&org@ @script:python depends on org@
p << r.p; p << r.p;
@@ @@
coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE") 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; p << r.p;
@@ @@