Skip to contentSkip to conversation

MIPS: Define dummy MAX_DMA_CHANNELS to fix build failure

PATCH RESEND In review Namhyung Kim 1 participant 2 messages Nov 16, 2010 – Dec 1, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 MIPS: Define dummy MAX_DMA_CHANNELS to fix build failure

allmodconfig build failes like following:

CC [M] sound/oss/soundcard.o
sound/oss/soundcard.c:68: error: 'MAX_DMA_CHANNELS' undeclared here (not in a function) make[3]: *** [sound/oss/soundcard.o] Error 1
make[2]: *** [sound/oss] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

---
 arch/mips/include/asm/dma.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/mips/include/asm/dma.h +3 -1
index 2d47da6..c601cff 100644
@@ -74,7 +74,9 @@
  *
  */
 
-#ifndef CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
+#ifdef CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
+#define MAX_DMA_CHANNELS	0
+#else
 #define MAX_DMA_CHANNELS	8
 #endif
 
Signature · 1 line
1.7.0.4
#1 lore raw

2010-11-16 (화), 23:47 +0900, Namhyung Kim:

Quoted 19 lines

allmodconfig build failes like following:

CC [M] sound/oss/soundcard.o
sound/oss/soundcard.c:68: error: 'MAX_DMA_CHANNELS' undeclared here (not in a function) make[3]: *** [sound/oss/soundcard.o] Error 1
make[2]: *** [sound/oss] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

---
 arch/mips/include/asm/dma.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/mips/include/asm/dma.h +0 -0
index 2d47da6..c601cff 100644

arch/mips/include/asm/dma.h line 82

Quoted 10 lines
arch/mips/include/asm/dma.h +3 -1
@@ -74,7 +74,9 @@
  *
  */
 
-#ifndef CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
+#ifdef CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
+#define MAX_DMA_CHANNELS	0
+#else
 #define MAX_DMA_CHANNELS	8
 #endif
 

Ping. Any comments?

Signature · 2 lines
Regards,
Namhyung Kim