dma-direct: improve DMA mask overflow reporting
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2020 13:54:50 +0000 (14:54 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 5 Feb 2020 17:53:41 +0000 (18:53 +0100)
commit75467ee48a5e04cf3ae3cb39aea6adee73aeff91
tree5cf018aa97ba4a8bbb1be9ddde3186b4ce572b42
parent4a47cbae04844f0c5e2365aa6c217b61850bb832
dma-direct: improve DMA mask overflow reporting

Remove the unset dma_mask case as that won't get into mapping calls
anymore, and also report the other errors unconditonally and with a
slightly improved message.  Remove the now pointless report_addr helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad@darnok.org>
kernel/dma/direct.c