cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
From: Himanshu Jha <himanshujha199640@gmail.com>
To: Julia.Lawall@lip6.fr
Cc: Flavio Ceolin <flavio.ceolin@intel.com>,
	cocci@systeme.lip6.fr,
	Patrik Flykt <patrik.flykt@linux.intel.com>
Subject: Re: [Cocci] [PATCH] standard.h: Add Z_SYSCALL_HANDLER macro
Date: Thu, 17 Jan 2019 03:15:32 +0530	[thread overview]
Message-ID: <20190116214532.GA13641@himanshu-Vostro-3559> (raw)
In-Reply-To: <20190116210455.1091-1-himanshujha199640@gmail.com>

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 <patrik.flykt@linux.intel.com>
> Cc: Flavio Ceolin <flavio.ceolin@intel.com>
> Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
> ---

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
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

      reply	other threads:[~2019-01-16 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-16 21:04 [Cocci] [PATCH] standard.h: Add Z_SYSCALL_HANDLER macro Himanshu Jha
2019-01-16 21:45 ` Himanshu Jha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190116214532.GA13641@himanshu-Vostro-3559 \
    --to=himanshujha199640@gmail.com \
    --cc=Julia.Lawall@lip6.fr \
    --cc=cocci@systeme.lip6.fr \
    --cc=flavio.ceolin@intel.com \
    --cc=patrik.flykt@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).