diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-19 23:44:54 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-19 23:44:54 +0400 |
commit | 02a1416478b70cd49bd74827438c8ba797784728 (patch) | |
tree | cb1539e902a3651be684f42cefcf89fa56da8f26 /include/asm-um | |
parent | 821c92f258bd9b01eb900992969803645b6ba9d6 (diff) | |
download | linux-02a1416478b70cd49bd74827438c8ba797784728.tar.xz |
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-um')
-rw-r--r-- | include/asm-um/dma-mapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-um/dma-mapping.h b/include/asm-um/dma-mapping.h index f0ee4fb55911..90fc708b320e 100644 --- a/include/asm-um/dma-mapping.h +++ b/include/asm-um/dma-mapping.h @@ -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 |