forked from Minki/linux
64941d8930
Presently the SH7720/21 serial code uses asm/gpio.h to get at the CPU GPIO port definitions, but in the case of GPIOLIB=y this also includes references to generic GPIOLIB routines that we don't have any function declarations for, tripping up on -Werror=implicit-function-declaration with newer gcc versions: CC arch/sh/kernel/cpu/sh3/serial-sh7720.o In file included from include/linux/sh_pfc.h:14:0, from arch/sh/include/asm/gpio.h:23, from arch/sh/kernel/cpu/sh3/serial-sh7720.c:5: include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep': include/asm-generic/gpio.h:220:2: error: implicit declaration of function '__gpio_get_value' [-Werror=implicit-function-declaration] include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep': include/asm-generic/gpio.h:226:2: error: implicit declaration of function '__gpio_set_value' [-Werror=implicit-function-declaration] In file included from arch/sh/include/asm/gpio.h:23:0, from arch/sh/kernel/cpu/sh3/serial-sh7720.c:5: include/linux/sh_pfc.h: At top level: include/linux/sh_pfc.h:121:19: error: field 'chip' has incomplete type Switch to using the cpu/ version for the port definitions explicitly. Signed-off-by: Paul Mundt <lethal@linux-sh.org> |
||
---|---|---|
.. | ||
cpu | ||
vsyscall | ||
.gitignore | ||
asm-offsets.c | ||
cpufreq.c | ||
crash_dump.c | ||
debugtraps.S | ||
disassemble.c | ||
dma-nommu.c | ||
dumpstack.c | ||
dwarf.c | ||
entry-common.S | ||
ftrace.c | ||
head_32.S | ||
head_64.S | ||
hw_breakpoint.c | ||
idle.c | ||
io_trapped.c | ||
io.c | ||
iomap.c | ||
ioport.c | ||
irq_32.c | ||
irq_64.c | ||
irq.c | ||
kdebugfs.c | ||
kgdb.c | ||
kprobes.c | ||
localtimer.c | ||
machine_kexec.c | ||
machvec.c | ||
Makefile | ||
module.c | ||
nmi_debug.c | ||
perf_callchain.c | ||
perf_event.c | ||
process_32.c | ||
process_64.c | ||
process.c | ||
ptrace_32.c | ||
ptrace_64.c | ||
ptrace.c | ||
reboot.c | ||
relocate_kernel.S | ||
return_address.c | ||
setup.c | ||
sh_bios.c | ||
sh_ksyms_32.c | ||
sh_ksyms_64.c | ||
signal_32.c | ||
signal_64.c | ||
smp.c | ||
stacktrace.c | ||
swsusp.c | ||
sys_sh32.c | ||
sys_sh64.c | ||
sys_sh.c | ||
syscalls_32.S | ||
syscalls_64.S | ||
time.c | ||
topology.c | ||
traps_32.c | ||
traps_64.c | ||
traps.c | ||
unwinder.c | ||
vmlinux.lds.S |