ARM: 8419/1: dma-mapping: harmonize definition of DMA_ERROR_CODE
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 18 Aug 2015 08:14:15 +0000 (09:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 18 Aug 2015 13:00:30 +0000 (14:00 +0100)
All architectures except arm that define DMA_ERROR_CODE are casting it
to (dma_addr_t) - as it is always compared to dma_addr_t in arm as well
this could be harmonized.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/dma-mapping.h

index b52101d37ec74d7db81f0b33a12b051f7aca5527..a68b9d8a71fed8ee2357d833a023d2bed9696d69 100644 (file)
@@ -14,7 +14,7 @@
 #include <xen/xen.h>
 #include <asm/xen/hypervisor.h>
 
-#define DMA_ERROR_CODE (~0)
+#define DMA_ERROR_CODE (~(dma_addr_t)0x0)
 extern struct dma_map_ops arm_dma_ops;
 extern struct dma_map_ops arm_coherent_dma_ops;