Skip to contentSkip to conversation

m68k/kernel/dma.c assumes !MMU_SUN3

PATCH New Al Viro 1 participant 1 message Oct 9, 2006 m68k architecture

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 m68k/kernel/dma.c assumes !MMU_SUN3

---
 arch/m68k/kernel/Makefile      |    3 ++-
 include/asm-m68k/dma-mapping.h |    5 +++++
 2 files changed, 7 insertions(+), 1 deletions(-)
arch/m68k/kernel/Makefile +2 -1
index dae6097..1c9ecaa 100644
@@ -9,10 +9,11 @@ else
 endif
 extra-y	+= vmlinux.lds
 
-obj-y	:= entry.o process.o traps.o ints.o dma.o signal.o ptrace.o \
+obj-y	:= entry.o process.o traps.o ints.o signal.o ptrace.o \
 	   sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
 
 obj-$(CONFIG_PCI)	+= bios32.o
 obj-$(CONFIG_MODULES)	+= module.o
+obj-y$(CONFIG_MMU_SUN3) += dma.o	# no, it's not a typo
 
 EXTRA_AFLAGS := -traditional
include/asm-m68k/dma-mapping.h +5 -0
index c1299c3..d90d841 100644
@@ -5,6 +5,7 @@ #include <asm/cache.h>
 
 struct scatterlist;
 
+#ifndef CONFIG_MMU_SUN3
 static inline int dma_supported(struct device *dev, u64 mask)
 {
 	return 1;
@@ -88,4 +89,8 @@ static inline int dma_mapping_error(dma_
 	return 0;
 }
 
+#else
+#include <asm-generic/dma-mapping-broken.h>
+#endif
+
 #endif  /* _M68K_DMA_MAPPING_H */
Signature · 1 line
1.4.2.GIT