[PATCH v5 1/7] dma: Take into account dma_pfn_offset

Christoph Hellwig hch at infradead.org
Tue Jun 20 06:24:00 PDT 2017


> -		sg_dma_address(sg) = (dma_addr_t)virt_to_phys(va);
> +		sg_dma_address(sg) = (dma_addr_t)(virt_to_phys(va) - PFN_PHYS(dev->dma_pfn_offset));

Needs a line break instead of the overly long line.

Otherwise this looks fine to me.



More information about the linux-arm-kernel mailing list