]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
xtensa: provide DMA_ERROR_CODE definition
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 1 Nov 2012 14:38:27 +0000 (18:38 +0400)
committerChris Zankel <chris@zankel.net>
Wed, 19 Dec 2012 05:10:21 +0000 (21:10 -0800)
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>
arch/xtensa/include/asm/dma-mapping.h

index 492c95790ad5ac2072ab60720ee6469d53e5d0f0..eb69743172b1561afb94e45c70a5bd5d95739124 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/mm.h>
 #include <linux/scatterlist.h>
 
+#define DMA_ERROR_CODE         (~(dma_addr_t)0x0)
+
 /*
  * DMA-consistent mapping functions.
  */