Commit 02a14164 authored by David S. Miller's avatar David S. Miller

net: Fix build with ARCH=um

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 821c92f2
...@@ -118,4 +118,11 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size, ...@@ -118,4 +118,11 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
BUG(); BUG();
} }
static inline int
dma_mapping_error(struct device *dev, dma_addr_t dma_handle)
{
BUG();
return 0;
}
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment