All of lore.kernel.org
 help / color / mirror / Atom feed
From: andi@firstfloor.org (Andi Kleen)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Patch macros
Date: Fri, 14 Feb 2014 20:56:16 +0100	[thread overview]
Message-ID: <20140214195616.GA32005@two.firstfloor.org> (raw)
In-Reply-To: <alpine.DEB.2.10.1402141649210.2118@hadrien>

On Fri, Feb 14, 2014 at 04:51:18PM +0100, Julia Lawall wrote:
> On Fri, 14 Feb 2014, Andi Kleen wrote:
> 
> >
> > Hi,
> >
> > I was trying to replace static asmlinkage with static. However
> > it always gives a cocci parsing error. I assume the problem is that
> > asmlinkage is really a macro (for __attribute__((visible)) in
> > my case). How to handle this in cocci?
> 
> Unfortunately, I don't think it is possible.  The Coccinelle C parser
> doesn't have any notion of asmlinkage, and so it skips over it.

I was hoping there was a way to tell cocci about the macros.

Ok, back to sed then for this.

Thanks Julia.

-Andi

  reply	other threads:[~2014-02-14 19:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 15:35 [Cocci] Patch macros Andi Kleen
2014-02-14 15:51 ` Julia Lawall
2014-02-14 19:56   ` Andi Kleen [this message]
2014-02-14 20:14     ` Julia Lawall

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=20140214195616.GA32005@two.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=cocci@systeme.lip6.fr \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.