arch/sh/kernel/sys_sh.c:58:16: warning: no previous prototype for
‘sys_cacheflush’ [-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/include/asm/syscalls.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sh/include/asm/syscalls.h b/arch/sh/include/asm/syscalls.h
arch/sh/math-emu/math.c:492:5: warning: no previous prototype for 'do_fpu_inst'
[-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/math-emu/math.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sh/math-emu/math.c b/arch/sh/math-emu/math.c
index
arch/sh/mm/nommu.c:76:13: warning: no previous prototype for
'kmap_coherent_init' [-Wmissing-prototypes]
arch/sh/mm/nommu.c:80:7: warning: no previous prototype for 'kmap_coherent'
[-Wmissing-prototypes]
arch/sh/mm/nommu.c:86:6: warning: no previous prototype for 'kunmap_coherent'
arch/sh/kernel/cpu/sh4/fpu.c:389:6: warning: no previous prototype for
‘float_raise’ [-Wmissing-prototypes]
arch/sh/kernel/cpu/sh4/fpu.c:394:5: warning: no previous prototype for
‘float_rounding_mode’ [-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/include/asm/fpu.h | 3
arch/sh/kernel/kprobes.c:299:15: warning: no previous prototype for
'trampoline_probe_handler' [-Wmissing-prototypes]
There are no users outside this file, so make it static.
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/kprobes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/mm/tlbex_32.c:22:1: warning: no previous prototype for ‘handle_tlbmiss’
[-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/include/asm/tlb.h | 4
arch/sh/mm/tlbex_32.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/arch/sh/include/asm/tlb.h
arch/sh/kernel/ftrace.c:130:6: warning: no previous prototype for
‘arch_ftrace_nmi_enter’ [-Wmissing-prototypes]
arch/sh/kernel/ftrace.c:140:6: warning: no previous prototype for
‘arch_ftrace_nmi_exit’ [-Wmissing-prototypes]
arch/sh/kernel/ftrace.c:316:6: warning: no previous prototype for
arch/sh/kernel/cpu/sh4a/setup-sh7786.c:411:13: warning: no previous prototype
for 'sh7786_usb_use_exclock' [-Wmissing-prototypes]
Upstream never had a user of sh7786_usb_use_exclock(), remove it.
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/cpu/sh4a/setup-sh7786.c | 14 --
arch/sh/kernel/hw_breakpoint.c:135:5: warning: no previous prototype for
‘arch_bp_generic_fields’ [-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/include/asm/hw_breakpoint.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sh/include/asm/hw_breakpoint.h
arch/sh/mm/pgtable.c:12:6: warning: no previous prototype for 'pgd_ctor'
[-Wmissing-prototypes]
arch/sh/mm/pgtable.c:34:8: warning: no previous prototype for 'pgd_alloc'
[-Wmissing-prototypes]
arch/sh/mm/pgtable.c:39:6: warning: no previous prototype for 'pgd_free'
[-Wmissing-prototypes]
arch/sh/kernel/cpu/sh2a/opcode_helper.c:34:14: warning: no previous prototype
for 'instruction_size' [-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/cpu/sh2a/opcode_helper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git
arch/sh/kernel/smp.c:173:17: warning: no previous prototype for
'start_secondary' [-Wmissing-prototypes]
arch/sh/kernel/smp.c:324:5: warning: no previous prototype for
'setup_profiling_timer' [-Wmissing-prototypes]
Make start_secondary() static, as it is only used in this file.
Include to fix
arch/sh/boot/compressed/cache.c:2:5: warning: no previous prototype for
‘cache_control’ [-Wmissing-prototypes]
arch/sh/boot/compressed/misc.c:115:6: warning: no previous prototype for
‘ftrace_stub’ [-Wmissing-prototypes]
arch/sh/boot/compressed/misc.c:118:6: warning: no previous prototype for
arch/sh/kernel/traps_32.c:735:6: warning: no previous prototype for
‘per_cpu_trap_init’ [-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/traps_32.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c
index
arch/sh/drivers/dma/dma-api.c:164:5: warning: no previous prototype for
'dmac_search_free_channel' [-Wmissing-prototypes]
dmac_search_free_channel() never had a user in upstream, remove it.
Signed-off-by: Geert Uytterhoeven
---
dma_extend(), get_dma_info_by_name(), register_chan_caps(), and
Hi all,
This patch series fixes several "no previous prototype for "
warnings when building a kernel for SuperH.
Known issues:
- The various warnings about cache functions are not yet fixed, but
I didn't want to hold off the rest of this series,
- sdk7786_defconfig needs
arch/sh/kernel/kprobes.c:52:16: warning: no previous prototype for
'arch_copy_kprobe' [-Wmissing-prototypes]
Although SH kprobes support was only merged in v2.6.28, it missed the
earlier removal of the arch_copy_kprobe() callback in v2.6.15.
Based on the powerpc part of commit 49a2a1b83ba6fa40
arch/sh/kernel/return_address.c:49:7: warning: no previous prototype for
‘return_address’ [-Wmissing-prototypes]
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/return_address.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sh/kernel/return_address.c
There is no need to cast a kprobe_opcode_t pointer to a kprobe_opcode_t
pointer.
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/kprobes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/sh/kernel/kprobes.c b/arch/sh/kernel/kprobes.c
index
dma_extend(), get_dma_info_by_name(), register_chan_caps(), and
request_dma_bycap() are unused. Remove them, and all related code.
Signed-off-by: Geert Uytterhoeven
---
arch/sh/drivers/dma/dma-api.c | 116 --
arch/sh/include/asm/dma.h | 7 --
2 files
arch/sh/kernel/dwarf.c:347:19: warning: no previous prototype for
'dwarf_lookup_fde' [-Wmissing-prototypes]
There are no users outside this file, so make it static.
Signed-off-by: Geert Uytterhoeven
---
arch/sh/kernel/dwarf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
21 matches
Mail list logo