Skip to contentSkip to conversation

sh: fix the compile error in setup-sh7757.c

PATCH Applied Yoshihiro Shimoda 2 participants 2 messages Aug 23, 2011 – Aug 29, 2011 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: fix the compile error in setup-sh7757.c

Fix the following build errors:

CC arch/sh/kernel/cpu/sh4a/setup-sh7757.o
arch/sh/kernel/cpu/sh4a/setup-sh7757.c:681: error: implicit declaration of function ‘DMA_BIT_MASK’ arch/sh/kernel/cpu/sh4a/setup-sh7757.c:681: error: initializer element is not constant arch/sh/kernel/cpu/sh4a/setup-sh7757.c:681: error: (near initialization for ‘usb_ehci_device.dev.coherent_dma_mask’) arch/sh/kernel/cpu/sh4a/setup-sh7757.c:705: error: initializer element is not constant arch/sh/kernel/cpu/sh4a/setup-sh7757.c:705: error: (near initialization for ‘usb_ohci_device.dev.coherent_dma_mask’) make[3]: *** [arch/sh/kernel/cpu/sh4a/setup-sh7757.o] Error 1

---
 arch/sh/kernel/cpu/sh4a/setup-sh7757.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/sh/kernel/cpu/sh4a/setup-sh7757.c +1 -0
index e915dea..0555929 100644
@@ -15,6 +15,7 @@
 #include <linux/serial_sci.h>
 #include <linux/io.h>
 #include <linux/mm.h>
+#include <linux/dma-mapping.h>
 #include <linux/sh_timer.h>
 #include <linux/sh_dma.h>
 
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 11 lines · Yoshihiro Shimoda

Fix the following build errors:

CC arch/sh/kernel/cpu/sh4a/setup-sh7757.o
arch/sh/kernel/cpu/sh4a/setup-sh7757.c:681: error: implicit declaration of function ?DMA_BIT_MASK? arch/sh/kernel/cpu/sh4a/setup-sh7757.c:681: error: initializer element is not constant arch/sh/kernel/cpu/sh4a/setup-sh7757.c:681: error: (near initialization for ?usb_ehci_device.dev.coherent_dma_mask?) arch/sh/kernel/cpu/sh4a/setup-sh7757.c:705: error: initializer element is not constant arch/sh/kernel/cpu/sh4a/setup-sh7757.c:705: error: (near initialization for ?usb_ohci_device.dev.coherent_dma_mask?) make[3]: *** [arch/sh/kernel/cpu/sh4a/setup-sh7757.o] Error 1

Applied, thanks.