Hi Markus, I'm away from my computer right now so can't test this, but try declaring __iomem as an attribute:
@display@ identifier action; attribute name __iomem; @@ On Tue, 16 Jun 2020, 10:21 p.m. Markus Elfring <[email protected] wrote: > Hello, > > The support for data processing with attributes was extended recently. > > https://github.com/coccinelle/coccinelle/commits?q=committer-date%3A%3C2020-06-16 > > Under which circumstances will a source code analysis approach become > supported > by a script (like the following) for the semantic patch language? > > > @display@ > identifier action; > @@ > *void __iomem * action(...) > { ... } > > > elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci > show_iomem_functions.cocci > … > minus: parse error: > File "show_iomem_functions.cocci", line 4, column 14, charpos = 46 > around = '*', > whole content = *void __iomem * action(...) > > > Regards, > Markus >
_______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
