Skip to content

Commit

Permalink
net: Fix build with ARCH=um
Browse files Browse the repository at this point in the history
If UM is going to claim that it supports DMA by setting
HAS_DMA, it should provide a dma_mapping_error() implementation.

Based upon a report by Julius Volz.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 19, 2008
1 parent 821c92f commit 02a1416
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/asm-um/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,11 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
BUG();
}

static inline int
dma_mapping_error(struct device *dev, dma_addr_t dma_handle)
{
BUG();
return 0;
}

#endif

0 comments on commit 02a1416

Please sign in to comment.