[Cocci] Analysis for Linux source files

SF Markus Elfring
2013-04-02T10:12:38Z

Hello,

I try out a bit of static source code analysis again by the following command.

elfring at Sonne:~/Projekte/Coccinelle/lokal/demos/pass-through>
XY=/usr/src/linux-stable/ && spatch -sp_file list_pass-through_functions.cocci \
-dir $XY \
-I ${XY}include \
-I ${XY}usr/include \
-I ${XY}arch/ia64/include \
-I ${XY}arch/ia64/include/uapi \
-I ${XY}arch/x86/include \
-I ${XY}arch/x86/include/generated \
-I /usr/include \
-I /usr/include/c++/4.7/tr1 \
-recursive_includes \
>list_pass-through_functions-linux.txt \
2>list_pass-through_functions-linux-errors.txt

I notice results like the following in my log file.

...
HANDLING: /usr/src/linux-stable/init/noinitramfs.c
EXN:Failure("empty list, max_min_ii_by_pos")
Note: processing took 85.2s: /usr/src/linux-stable/init/noinitramfs.c
HANDLING: /usr/src/linux-stable/init/do_mounts_md.c
EXN:Failure("empty list, max_min_ii_by_pos")
Note: processing took 109.5s: /usr/src/linux-stable/init/do_mounts_md.c
...

Can the shown error message be avoided?
What does it really mean?

openSUSE package: coccinelle 1.0.0-27.6
spatch version 1.0.0-rc14 with Python support and with Str regexp support

Regards,
Markus