[Cocci] Patch macros

Andi Kleen andi at firstfloor.org
Fri Feb 14 20:56:16 CET 2014

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.


More information about the Cocci mailing list