summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-11-01 18:38:27 +0400
committerChris Zankel <chris@zankel.net>2012-12-18 21:10:21 -0800
commit35b16a9a093757a7a1ef288eea1128b0b4a3eef7 (patch)
treecc20373d9277e83301db8344a8555bc2f90dab6a /arch/xtensa
parent94d6c61b97cbcb3b538276c3785896ea12ecaecb (diff)
downloadop-kernel-dev-35b16a9a093757a7a1ef288eea1128b0b4a3eef7.zip
op-kernel-dev-35b16a9a093757a7a1ef288eea1128b0b4a3eef7.tar.gz
xtensa: provide DMA_ERROR_CODE definition
This fixes the following allmodconfig build error: drivers/uio/uio_dmem_genirq.c:95:18: error: 'DMA_ERROR_CODE' undeclared (first use in this function) drivers/uio/uio_dmem_genirq.c:238:18: error: 'DMA_ERROR_CODE' undeclared (first use in this function) make[3]: *** [drivers/uio/uio_dmem_genirq.o] Error 1 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/include/asm/dma-mapping.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/dma-mapping.h b/arch/xtensa/include/asm/dma-mapping.h
index 492c957..eb69743 100644
--- a/arch/xtensa/include/asm/dma-mapping.h
+++ b/arch/xtensa/include/asm/dma-mapping.h
@@ -16,6 +16,8 @@
#include <linux/mm.h>
#include <linux/scatterlist.h>
+#define DMA_ERROR_CODE (~(dma_addr_t)0x0)
+
/*
* DMA-consistent mapping functions.
*/
OpenPOWER on IntegriCloud