summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/dma-iommu.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-22 11:53:03 +0300
committerChristoph Hellwig <hch@lst.de>2017-06-28 16:54:36 +0300
commit9eef8b8cc26559fe5f2575daf7d08c6a17e81ff8 (patch)
treee841db81e1a71ac48162fa402d42ee2526d7b71b /arch/arm/include/asm/dma-iommu.h
parenta760088b45186d6235e05a75788d142bf203a927 (diff)
downloadlinux-9eef8b8cc26559fe5f2575daf7d08c6a17e81ff8.tar.xz
arm: 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>
Diffstat (limited to 'arch/arm/include/asm/dma-iommu.h')
-rw-r--r--arch/arm/include/asm/dma-iommu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/dma-iommu.h b/arch/arm/include/asm/dma-iommu.h
index 2ef282f96651..389a26a10ea3 100644
--- a/arch/arm/include/asm/dma-iommu.h
+++ b/arch/arm/include/asm/dma-iommu.h
@@ -9,6 +9,8 @@
#include <linux/kmemcheck.h>
#include <linux/kref.h>
+#define ARM_MAPPING_ERROR (~(dma_addr_t)0x0)
+
struct dma_iommu_mapping {
/* iommu specific data */
struct iommu_domain *domain;