]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 18:28:34 +0000 (19:28 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:46 +0000 (06:56 -0800)
commitbcb655322b605be02f67e5def91f709dab4c74c1
tree9589fcbf910a2291fe41ec8e0e3c656ce338f0df
parent8c52a2dc5d4e249a446f997a85183ff12c66aa1e
iommu: remove the mapping_error dma_map_ops method

Return DMA_MAPPING_ERROR instead of 0 on a dma mapping failure and let
the core dma-mapping code handle the rest.

Note that the existing code used AMD_IOMMU_MAPPING_ERROR to check from
a 0 return from the IOVA allocator, which is replaced with an explicit
0 as in the implementation and other users of that interface.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/iommu/amd_iommu.c