Skip to content

sh: Fix missing prototypes

Geert Uytterhoeven linux-sh linux-trace-kernel 1 version Applied

Status from this message: Applied to my sh-linux tree in the for-next branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/20sh: pgtable: Fix missing prototypesarch/sh/mm/pgtable.c+3 -10 replies
2/20sh: fpu: Add missing forward declarationsarch/sh/include/asm/fpu.h+3 -00 replies
3/20sh: syscall: Add missing forward declaration for sys_cacheflush()arch/sh/include/asm/syscalls.h+1 -00 replies
4/20sh: tlb: Add missing forward declaration for handle_tlbmiss()arch/sh/include/asm/tlb.h arch/sh/mm/tlbex_32.c+5 -00 replies
5/20sh: return_address: Add missing #include <asm/ftrace.h>arch/sh/kernel/return_address.c+2 -00 replies
6/20sh: traps: Add missing #include <asm/setup.h>arch/sh/kernel/traps_32.c+1 -00 replies
7/20sh: hw_breakpoint: Add missing forward declaration for arch_bp_generic_fields()arch/sh/include/asm/hw_breakpoint.h+2 -00 replies
8/20sh: boot: Add proper forward declarationsarch/sh/boot/compressed/cache.c arch/sh/boot/compressed/cache.h arch/sh/boot/compressed/misc.c +1 more+25 -51 reply
9/20sh: ftrace: Fix missing prototypesarch/sh/include/asm/ftrace.h arch/sh/kernel/traps.c+12 -80 replies
10/20sh: nommu: Add missing #include <asm/cacheflush.h>arch/sh/mm/nommu.c+2 -00 replies
11/20sh: math-emu: Add missing #include <asm/fpu.h>arch/sh/math-emu/math.c+2 -00 replies
12/20sh: dma: Remove unused dmac_search_free_channel()arch/sh/drivers/dma/dma-api.c+0 -272 replies
13/20sh: sh2a: Add missing #include <asm/processor.h>arch/sh/kernel/cpu/sh2a/opcode_helper.c+2 -00 replies
14/20sh: sh7786: Remove unused sh7786_usb_use_exclock()arch/sh/kernel/cpu/sh4a/setup-sh7786.c+0 -140 replies
15/20sh: smp: Fix missing prototypesarch/sh/kernel/smp.c+3 -10 replies
16/20sh: kprobes: Merge arch_copy_kprobe() into arch_prepare_kprobe()arch/sh/kernel/kprobes.c+1 -60 replies
17/20sh: kprobes: Make trampoline_probe_handler() staticarch/sh/kernel/kprobes.c+1 -10 replies
18/20sh: kprobes: Remove unneeded kprobe_opcode_t castsarch/sh/kernel/kprobes.c+2 -20 replies
19/20sh: dwarf: Make dwarf_lookup_fde() staticarch/sh/kernel/dwarf.c+1 -10 replies
20/20sh: dma: Remove unused functionalityarch/sh/drivers/dma/dma-api.c arch/sh/include/asm/dma.h+0 -1234 replies

Reviews trailers per patch

None of the 20 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohn Paul Adrian Glaubitz
SeriesR-b
1/20
2/20
3/20
4/20
5/20
6/20
7/20
8/20
9/20
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/20] sh: Fix missing prototypes

Hi all,

This patch series fixes several "no previous prototype for <foo>" 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 "[PATCH/RFC] locking/spinlocks: Make __raw_* lock ops static" [1],
- Probably there are more warnings to fix, I didn't build all defconfigs.

This has been boot-tested on landisk and on qemu/rts7751r2d.

Thanks for your comments!

[1] https://lore.kernel.org/linux-sh/c395b02613572131568bc1fd1bc456d20d1a5426.1709325647.git.geert+renesas@glider.be

Geert Uytterhoeven (20):
sh: pgtable: Fix missing prototypes
sh: fpu: Add missing forward declarations
sh: syscall: Add missing forward declaration for sys_cacheflush()
sh: tlb: Add missing forward declaration for handle_tlbmiss()
sh: return_address: Add missing #include <asm/ftrace.h>
sh: traps: Add missing #include <asm/setup.h>
sh: hw_breakpoint: Add missing forward declaration for
arch_bp_generic_fields()
sh: boot: Add proper forward declarations
sh: ftrace: Fix missing prototypes
sh: nommu: Add missing #include <asm/cacheflush.h>
sh: math-emu: Add missing #include <asm/fpu.h>
sh: dma: Remove unused dmac_search_free_channel()
sh: sh2a: Add missing #include <asm/processor.h>
sh: sh7786: Remove unused sh7786_usb_use_exclock()
sh: smp: Fix missing prototypes
sh: kprobes: Merge arch_copy_kprobe() into arch_prepare_kprobe()
sh: kprobes: Make trampoline_probe_handler() static
sh: kprobes: Remove unneeded kprobe_opcode_t casts
sh: dwarf: Make dwarf_lookup_fde() static
[RFC] sh: dma: Remove unused functionality

 arch/sh/boot/compressed/cache.c         |   3 +
 arch/sh/boot/compressed/cache.h         |  10 ++
 arch/sh/boot/compressed/misc.c          |   8 +-
 arch/sh/boot/compressed/misc.h          |   9 ++
 arch/sh/drivers/dma/dma-api.c           | 143 ------------------------
 arch/sh/include/asm/dma.h               |   7 --
 arch/sh/include/asm/fpu.h               |   3 +
 arch/sh/include/asm/ftrace.h            |  10 ++
 arch/sh/include/asm/hw_breakpoint.h     |   2 +
 arch/sh/include/asm/syscalls.h          |   1 +
 arch/sh/include/asm/tlb.h               |   4 +
 arch/sh/kernel/cpu/sh2a/opcode_helper.c |   2 +
 arch/sh/kernel/cpu/sh4a/setup-sh7786.c  |  14 ---
 arch/sh/kernel/dwarf.c                  |   2 +-
 arch/sh/kernel/kprobes.c                |  13 +--
 arch/sh/kernel/return_address.c         |   2 +
 arch/sh/kernel/smp.c                    |   4 +-
 arch/sh/kernel/traps.c                  |  10 +-
 arch/sh/kernel/traps_32.c               |   1 +
 arch/sh/math-emu/math.c                 |   2 +
 arch/sh/mm/nommu.c                      |   2 +
 arch/sh/mm/pgtable.c                    |   4 +-
 arch/sh/mm/tlbex_32.c                   |   1 +
 23 files changed, 68 insertions(+), 189 deletions(-)
 create mode 100644 arch/sh/boot/compressed/cache.h
 create mode 100644 arch/sh/boot/compressed/misc.h
Signature · 12 lines
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds