swiotlb: remove the overflow buffer
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Aug 2018 12:30:39 +0000 (15:30 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 19 Oct 2018 06:43:46 +0000 (08:43 +0200)
commitdff8d6c1ed584de65aac40494d3e7468c50980c3
tree998f71d7b0951479f511df2ac236eaf850120a06
parent8088546832aa2c0d8f99dd56edf6384f8a9b63b3
swiotlb: remove the overflow buffer

Like all other dma mapping drivers just return an error code instead
of an actual memory buffer.  The reason for the overflow buffer was
that at the time swiotlb was invented there was no way to check for
dma mapping errors, but this has long been fixed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/arm64/mm/dma-mapping.c
arch/powerpc/kernel/dma-swiotlb.c
include/linux/dma-direct.h
include/linux/swiotlb.h
kernel/dma/direct.c
kernel/dma/swiotlb.c