diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-21 13:33:44 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-28 06:54:32 -0700 |
commit | ceaf481c4f6ae6090288528825abc7d051bb1032 (patch) | |
tree | 23987c73a38bd98486ec62fb4b1742e850db5b22 /arch/sparc/kernel/iommu_common.h | |
parent | 81cac18e1180e9812c9838d8cef3a1fff00f3702 (diff) | |
download | blackbird-obmc-linux-ceaf481c4f6ae6090288528825abc7d051bb1032.tar.gz blackbird-obmc-linux-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.h | 2 |
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 */ |