aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/iommu_common.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-21 13:33:44 +0200
committerChristoph Hellwig <hch@lst.de>2017-06-28 06:54:32 -0700
commitceaf481c4f6ae6090288528825abc7d051bb1032 (patch)
tree23987c73a38bd98486ec62fb4b1742e850db5b22 /arch/sparc/kernel/iommu_common.h
parents390: implement ->mapping_error (diff)
downloadlinux-dev-ceaf481c4f6ae6090288528825abc7d051bb1032.tar.xz
linux-dev-ceaf481c4f6ae6090288528825abc7d051bb1032.zip
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>
Diffstat (limited to 'arch/sparc/kernel/iommu_common.h')
-rw-r--r--arch/sparc/kernel/iommu_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/kernel/iommu_common.h b/arch/sparc/kernel/iommu_common.h
index 828493329f68..5ea5c192b1d9 100644
--- a/arch/sparc/kernel/iommu_common.h
+++ b/arch/sparc/kernel/iommu_common.h
@@ -47,4 +47,6 @@ static inline int is_span_boundary(unsigned long entry,
return iommu_is_span_boundary(entry, nr, shift, boundary_size);
}
+#define SPARC_MAPPING_ERROR (~(dma_addr_t)0x0)
+
#endif /* _IOMMU_COMMON_H */