是否可以使用 scripts / coccinelle / 中的内核规则从内核树中使用 coccinelle :
hedin@home:~/projects/linux/eudyptula$ spatch --sp-file /home/hedin /projects/open-source/linux/scripts/coccinelle/api/pm_runtime.cocci task08/task_08.c -o /tmp/new.c
init_defs_builtins: /usr/lib/coccinelle/standard.h
Fatal error: exception Failure("False should not be in the final result.
Perhaps your rule doesn't contain any +/-/* code, or you have a failed dependency.
If the problem is not clear, try the option --debug-parse-cocci.")