On Mon, May 11, 2015 at 10:24 PM, Julia Lawall <julia.lawall(a)lip6.fr> wrote:
On Tue, 12 May 2015, Dan Williams wrote:
> Coccinelle cleanup to replace open coded sg to physical address
> translations. This is in preparation for introducing scatterlists that
> reference pfn(s) without a backing struct page.
>
> // sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg)
> // usage: make coccicheck COCCI=sg_phys.cocci MODE=patch
>
> virtual patch
> virtual report
> virtual org
Just for information, you don't need the three lines above. There are ony
useful when you want the semantic patch to support several kinds of
output.
Ok, I think I added them from copying a coccicheck script, and if I
delete virtual patch I get
"virtual rule patch not supported"
when running:
make coccicheck COCCI=sg_phys.cocci MODE=patch
I suspect I am invoking it wrong.