From: David S. Miller Date: Fri, 19 Sep 2008 19:44:54 +0000 (-0700) Subject: net: Fix build with ARCH=um X-Git-Tag: v2.6.28-rc1~717^2~272 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=02a1416478b70cd49bd74827438c8ba797784728;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/include/asm-um/dma-mapping.h b/include/asm-um/dma-mapping.h index f0ee4fb5591..90fc708b320 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