lkml.org 
[lkml]   [2007]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] More defines for dma-mapping-broken.h
From: Heiko Carstens <heiko.carstens@de.ibm.com>

9ac7849e35f705830f7b016ff272b0ff1f7ff759 causes this on s390.
Since we don't support DMA extend dma-mapping-broken.h a bit.

drivers/base/dma-mapping.c: In function `dmam_noncoherent_release':
drivers/base/dma-mapping.c:32:
warning: implicit declaration of function `dma_free_noncoherent'
drivers/base/dma-mapping.c: In function `dmam_alloc_noncoherent':
drivers/base/dma-mapping.c:129:
warning: implicit declaration of function `dma_alloc_noncoherent'
drivers/base/dma-mapping.c:129:
warning: assignment makes pointer from integer without a cast

Cc: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
include/asm-generic/dma-mapping-broken.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)

Index: linux-2.6/include/asm-generic/dma-mapping-broken.h
===================================================================
--- linux-2.6.orig/include/asm-generic/dma-mapping-broken.h
+++ linux-2.6/include/asm-generic/dma-mapping-broken.h
@@ -3,7 +3,6 @@

/* This is used for archs that do not support DMA */

-
static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
gfp_t flag)
@@ -19,4 +18,7 @@ dma_free_coherent(struct device *dev, si
BUG();
}

+#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
+#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
+
#endif /* _ASM_GENERIC_DMA_MAPPING_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-02-10 12:47    [W:0.072 / U:0.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site