On Fri, 2015-08-07 at 18:15 +0200, Christoph Hellwig wrote:
[..]
> - page_to_phys(sg_page(sg))
> + sg_phys(sg) - sg->offset
Here's a replacement using PAGE_MASK instead of subtracting sg->offset
and a fixup for the awkward whitespace in dma_direct_map_sg().
8<-
Subject: scatterlist: use sg_ph
On Fri, Aug 7, 2015 at 9:15 AM, Christoph Hellwig wrote:
> From: Dan Williams
>
> Coccinelle cleanup to replace open coded sg to physical address
> translations. This is in preparation for introducing scatterlists that
> reference __pfn_t.
>
> // sg_phys.cocci: convert usage page_to_phys(sg_page
From: Dan Williams
Coccinelle cleanup to replace open coded sg to physical address
translations. This is in preparation for introducing scatterlists that
reference __pfn_t.
// sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg)
// usage: make coccicheck COCCI=sg_phys.cocci MOD