Skip to content

Commit

Permalink
ARM: 8419/1: dma-mapping: harmonize definition of DMA_ERROR_CODE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Russell King committed Aug 18, 2015
1 parent 8901925 commit 96231b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 96231b2

Please sign in to comment.