sh: fix the compile error in setup-sh7757.c
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.oarch/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
@@ -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
Paul Mundt
AppliedQuoted 11 lines · Yoshihiro Shimoda
Fix the following build errors:
CC
arch/sh/kernel/cpu/sh4a/setup-sh7757.oarch/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 constantarch/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 constantarch/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 1Signed-off-by Yoshihiro Shimoda <[email protected]>
Applied, thanks.