On Thu, Jan 17, 2019 at 02:34:55AM +0530, Himanshu Jha wrote:
> 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]>
> ---

Please drop this patch Julia.

I misunderstood what you suggested and it works fine using
`--macro-file` flag:

himanshu@himanshu-Vostro-3559:~/zephyr$ cat mymacros.h; spatch --sp-file 
test.cocci drivers/dma/dma_handlers.c --macro-file mymacros.h
#define Z_SYSCALL_HANDLER int xxx
init_defs_builtins: /usr/local/bin/../lib/coccinelle/standard.h
init_defs: mymacros.h
HANDLING: drivers/dma/dma_handlers.c
_impl_dma_start
_impl_dma_stop


Sorry for the noise.

-- 
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication
Guru Tegh Bahadur Institute of Technology
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to