OSDN Git Service

dma-mapping: take dma_pfn_offset into account in dma_max_pfn
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Nov 2017 15:32:51 +0000 (07:32 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Jan 2018 15:25:06 +0000 (16:25 +0100)
commita41ef1e455a9796be8cb986f0616f52453ac8e4b
tree6c8a67935171bbda4c1be624bb8bca40f9c72e7e
parent8fbc02ac62677603e75a67385fccd0c0bc69fa5c
dma-mapping: take dma_pfn_offset into account in dma_max_pfn

This makes sure the generic version can be used with architectures /
devices that have a DMA offset in the direct mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
include/linux/dma-mapping.h