Skip to content

Commit

Permalink
xtensa: provide DMA_ERROR_CODE definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Dec 19, 2012
1 parent 94d6c61 commit 35b16a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <linux/mm.h>
#include <linux/scatterlist.h>

#define DMA_ERROR_CODE (~(dma_addr_t)0x0)

/*
* DMA-consistent mapping functions.
*/
Expand Down

0 comments on commit 35b16a9

Please sign in to comment.