]> git.baikalelectronics.ru Git - kernel.git/commit
x86/calgary: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 18:24:00 +0000 (19:24 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:46 +0000 (06:56 -0800)
commit8c52a2dc5d4e249a446f997a85183ff12c66aa1e
treece98b58e5409af8859adc4229cb2b52bea775857
parent6754d0bd6e7332b76175110500378f1acfeb30b9
x86/calgary: remove the mapping_error dma_map_ops method

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

Remove the magic EMERGENCY_PAGES that the bad_dma_addr gets redirected to.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/pci-calgary_64.c