[Cocci] Patch macros

Andi Kleen andi at firstfloor.org
Fri Feb 14 16:35:03 CET 2014


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?

Thanks,

-Andi

@@
type T;
@@
- static asmlinkage T
+ static T


-- 
ak at linux.intel.com -- Speaking for myself only


More information about the Cocci mailing list