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)
commit205e1b7f51e4af2643eb1d61a6503e415cd1e014
tree378eab5560b61a7f479d9c9a35aed2415956a8e3
parent4b1b62b67d8b341ca97308822671b330a2c48c10
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