projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821c92f
)
net: Fix build with ARCH=um
author
David S. Miller
<davem@davemloft.net>
Fri, 19 Sep 2008 19:44:54 +0000
(12:44 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 19 Sep 2008 19:44:54 +0000
(12:44 -0700)
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>
include/asm-um/dma-mapping.h
patch
|
blob
|
history
diff --git
a/include/asm-um/dma-mapping.h
b/include/asm-um/dma-mapping.h
index
f0ee4fb
..
90fc708
100644
(file)
--- 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