dma-mapping: warn when there is no coherent_dma_mask
authorChristoph Hellwig <hch@lst.de>
Fri, 22 Dec 2017 13:50:47 +0000 (14:50 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Jan 2018 08:34:43 +0000 (09:34 +0100)
commitd0fa20919b22ee8385eca383f01464100700d34a
tree378eab5560b61a7f479d9c9a35aed2415956a8e3
parent69e9cf757165b530628502fa86e5fbbead46c91f
dma-mapping: warn when there is no coherent_dma_mask

These days all devices should have a DMA coherent mask, and most dma_ops
implementations rely on that fact.  But just to be sure add an assert to
ring the warning bell if that is not the case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
include/linux/dma-mapping.h