On Wed, 2020-06-17 at 09:30 +0200, Markus Elfring wrote: > > I'm away from my computer right now so can't test this, but try > > declaring __iomem as an attribute: > > @display@ > attribute name __iomem; > identifier action; > @@ > *void __iomem * action(...) > { ... } > > > elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci > show_iomem_functions2.cocci > … > minus: parse error: > File "show_iomem_functions2.cocci", line 5, column 14, charpos = 70 > around = '*', > whole content = *void __iomem * action(...) > > > Test version: 1.0.8-00131-g675b9670 >
Hm, okay this is due to a certain quirk in the SmPL parser, w/r/t pointers. I don't think it was a big deal before, but now it might be due to attributes... Once I'm done with what I'm working on right now I'll get around to this. Meanwhile, you could do the following: @display@ attribute name __iomem; identifier action; @@ *void * __iomem action(...) {...} It's not quite in line with the what-you-see-is-what-you-get principle, but it'll work for your use case. > > How many software development resources will be needed > to get such SmPL script variants to work? > Please stop asking such questions and I'll be happy to help you out. Cheers, Jaskaran. > Regards, > Markus _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci