This patch allows coccinelle to parse the Z_SYSCALL_HANDLER macro for transformation.
Cc: Patrik Flykt <[email protected]> Cc: Flavio Ceolin <[email protected]> Signed-off-by: Himanshu Jha <[email protected]> --- Results: himanshu@himanshu-Vostro-3559:~/zephyr$ cat test.cocci; spatch --sp-file test.cocci drivers/dma/dma_handlers.c @r@ identifier fn =~ "^_.*"; @@ fn (...) @script:python@ f << r.fn; @@ print f init_defs_builtins: /usr/local/bin/../lib/coccinelle/standard.h HANDLING: drivers/dma/dma_handlers.c _impl_dma_start _impl_dma_stop standard.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/standard.h b/standard.h index d9200643..032d75c5 100644 --- a/standard.h +++ b/standard.h @@ -777,4 +777,6 @@ do { \ #define SYSCALL_DEFINE6(func, t1, a1, t2, a2, t3, a3, t4, a4, t5, a5, t6, a6) \ asmlinkage unsigned long func(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6) +#define Z_SYSCALL_HANDLER int xxx + #define KBUILD_MODNAME YACFE_STRING -- 2.17.1 _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
