sparc: implement ->mapping_error

DMA_ERROR_CODE is going to go away, so don't rely on it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
此提交包含在:
Christoph Hellwig
2017-05-21 13:33:44 +02:00
父節點 81cac18e11
當前提交 ceaf481c4f
共有 4 個檔案被更改,包括 21 行新增9 行删除

查看文件

@@ -5,8 +5,6 @@
#include <linux/mm.h>
#include <linux/dma-debug.h>
#define DMA_ERROR_CODE (~(dma_addr_t)0x0)
#define HAVE_ARCH_DMA_SUPPORTED 1
int dma_supported(struct device *dev, u64 mask);