![]() | |||||||||||||
Messages in this thread Patch in this message |
On 16 Feb 2004 23:50:03 -0500
David Dillow <dave@thedillows.org> wrote:
> I believe this changeset in Linus's tree:
...
> breaks builds that do not include PCI support.
Indeed, thanks for catching this David. This patch should fix it
and I'll be pushing this to Linus.
Thanks again.
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/02/16 21:28:29-08:00 davem@nuts.davemloft.net
# [SPARC64]: Fix non-PCI build, reported by David Dillow.
#
# include/asm-sparc64/dma-mapping.h
# 2004/02/16 21:25:35-08:00 davem@nuts.davemloft.net +21 -1
# [SPARC64]: Fix non-PCI build, reported by David Dillow.
#
diff -Nru a/include/asm-sparc64/dma-mapping.h b/include/asm-sparc64/dma-mapping.h
--- a/include/asm-sparc64/dma-mapping.h Mon Feb 16 21:28:51 2004
+++ b/include/asm-sparc64/dma-mapping.h Mon Feb 16 21:28:51 2004
@@ -1,5 +1,25 @@
+#ifndef _ASM_SPARC64_DMA_MAPPING_H
+#define _ASM_SPARC64_DMA_MAPPING_H
+
#include <linux/config.h>
#ifdef CONFIG_PCI
#include <asm-generic/dma-mapping.h>
-#endif
+#else
+
+static inline void *dma_alloc_coherent(struct device *dev, size_t size,
+ dma_addr_t *dma_handle, int flag)
+{
+ BUG();
+ return NULL;
+}
+
+static inline void dma_free_coherent(struct device *dev, size_t size,
+ void *vaddr, dma_addr_t dma_handle)
+{
+ BUG();
+}
+
+#endif /* PCI */
+
+#endif /* _ASM_SPARC64_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: 2005-03-22 13:01 [W:0.178 / U:0.190 seconds] ©2003-2008 Jasper Spaans | |||||||||||||