]> git.baikalelectronics.ru Git - kernel.git/commit
dma-direct: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 17:52:35 +0000 (18:52 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:36 +0000 (06:56 -0800)
commit4042088451dbd1fac22cf8825407bca3be894224
treead7ddcb65ac796861e1a9af8db84a8eb116bb2e1
parent833d038a3e9d358149475b392bd4fde293b6536b
dma-direct: remove the mapping_error dma_map_ops method

The dma-direct code already returns (~(dma_addr_t)0x0) on mapping
failures, so we can switch over to returning DMA_MAPPING_ERROR and let
the core dma-mapping code handle the rest.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/kernel/dma-swiotlb.c
include/linux/dma-direct.h
kernel/dma/direct.c
kernel/dma/swiotlb.c