Skip to content

mips: address -Wmissing-prototypes warnings

Arnd Bergmann linux-mips lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] mips-kexec-include-linux-rebooth.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 1 replyApplied 20/20

Patches in v1 All 20 applied

#Subject and filesSizeRepliesApplied
1/20mips: decompress: fix add missing prototypesarch/mips/boot/compressed/dbg.c arch/mips/boot/compressed/decompress.c arch/mips/boot/compressed/decompress.h +1 more+29 -140 repliesApplied
2/20mips: add asm/syscalls.h headerarch/mips/include/asm/syscalls.h arch/mips/kernel/linux32.c arch/mips/kernel/mips-mt-fpaff.c +5 more+40 -00 repliesApplied
3/20mips: add missing declarations for trap handlersarch/mips/include/asm/traps.h arch/mips/kernel/r4k-bugs64.c arch/mips/kernel/unaligned.c +1 more+26 -00 repliesApplied
4/20mips: rs870e: stop exporting local functionsdrivers/platform/mips/rs780e-acpi.c+4 -80 repliesApplied
5/20mips: signal: move sigcontext declarations to headerarch/mips/kernel/signal-common.h arch/mips/kernel/signal_n32.c+3 -30 repliesApplied
6/20mips: mark local function static if possiblearch/mips/kernel/mips-cm.c arch/mips/mm/c-r4k.c+2 -20 repliesApplied
7/20mips: move build_tlb_refill_handler() prototypearch/mips/include/asm/tlbex.h arch/mips/mm/tlb-r3k.c arch/mips/mm/tlb-r4k.c+3 -40 repliesApplied
8/20mips: move jump_label_apply_nops() declaration to headerarch/mips/include/asm/jump_label.h arch/mips/kernel/module.c+4 -20 repliesApplied
9/20mips: unhide uasm_in_compat_space_p() declarationarch/mips/include/asm/uasm.h+0 -20 repliesApplied
10/20mips: fix setup_zero_pages() prototypearch/mips/include/asm/mach-loongson64/mmzone.h arch/mips/include/asm/mmzone.h arch/mips/mm/init.c+3 -10 repliesApplied
11/20mips: fix tlb_init() prototypearch/mips/include/asm/setup.h arch/mips/kernel/traps.c arch/mips/mm/tlb-r3k.c +1 more+3 -20 repliesApplied
12/20mips: move cache declarations into headerarch/mips/include/asm/cache.h arch/mips/include/asm/r4kcache.h arch/mips/kernel/cpu-probe.c +3 more+10 -120 repliesApplied
13/20mips: add missing declarationsarch/mips/include/asm/processor.h arch/mips/include/asm/signal.h arch/mips/include/asm/smp.h+5 -00 repliesApplied
14/20mips: spram: fix missing prototype warning for spram_configarch/mips/include/asm/spram.h arch/mips/kernel/spram.c+2 -10 repliesApplied
15/20mips: mt: include asm/mips_mt.harch/mips/kernel/mips-mt.c+1 -00 repliesApplied
16/20mips: remove extraneous asm-generic/iomap.h includearch/mips/include/asm/io.h+0 -20 repliesApplied
17/20mips: suspend: include linux/suspend.h as neededarch/mips/power/cpu.c arch/mips/power/hibernate.c+2 -00 repliesApplied
18/20mips: hide conditionally unused functionsarch/mips/mm/pgtable-64.c arch/mips/mm/tlb-r4k.c+4 -00 repliesApplied
19/20mips: smp: fix setup_profiling_timer() prototypearch/mips/kernel/smp.c+3 -00 repliesApplied
20/20mips: kexec: include linux/reboot.harch/mips/kernel/machine_kexec.c+1 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/20] mips: address -Wmissing-prototypes warnings

From: Arnd Bergmann <[email protected]>

As promised, I've now addressed the -Wmissing-prototypes warnings that showed up in mips as the last major architecture after my patch to enable the option everywhere.

This should result in a clean build for the defconfig and allmodconfig builds, but the older platforms that are not yet converted to CONFFIG_MIPS_GENERIC_KERNEL tend to still have some remaining warnings in platform specific code that someone needs to address.

The patches could either go through Thomas's mips tree, or alternatively through linux-mm along with the hexagon patches that Andrew has already merged.

Arnd

Cc "Andrew Morton" <[email protected]>
Cc "Stephen Rothwell" <[email protected]>
Cc "Linux Kernel Mailing List" <[email protected]>,
Cc "Thomas Bogendoerfer" <[email protected]>,

Arnd Bergmann (20):
mips: decompress: fix add missing prototypes
mips: add asm/syscalls.h header
mips: add missing declarations for trap handlers
mips: rs870e: stop exporting local functions
mips: signal: move sigcontext declarations to header
mips: mark local function static if possible
mips: move build_tlb_refill_handler() prototype
mips: move jump_label_apply_nops() declaration to header
mips: unhide uasm_in_compat_space_p() declaration
mips: fix setup_zero_pages() prototype
mips: fix tlb_init() prototype
mips: move cache declarations into header
mips: add missing declarations
mips: spram: fix missing prototype warning for spram_config
mips: mt: include asm/mips_mt.h
mips: remove extraneous asm-generic/iomap.h include
mips: suspend: include linux/suspend.h as needed
mips: hide conditionally unused functions
mips: smp: fix setup_profiling_timer() prototype
mips: kexec: include linux/reboot.h

 arch/mips/boot/compressed/dbg.c               |  2 ++
 arch/mips/boot/compressed/decompress.c        | 16 ++-------
 arch/mips/boot/compressed/decompress.h        | 24 ++++++++++++++
 arch/mips/boot/compressed/string.c            |  1 +
 arch/mips/include/asm/cache.h                 |  6 ++++
 arch/mips/include/asm/io.h                    |  2 --
 arch/mips/include/asm/jump_label.h            |  3 ++
 .../mips/include/asm/mach-loongson64/mmzone.h |  1 -
 arch/mips/include/asm/mmzone.h                |  2 ++
 arch/mips/include/asm/processor.h             |  2 ++
 arch/mips/include/asm/r4kcache.h              |  4 +++
 arch/mips/include/asm/setup.h                 |  1 +
 arch/mips/include/asm/signal.h                |  1 +
 arch/mips/include/asm/smp.h                   |  2 ++
 arch/mips/include/asm/spram.h                 |  2 +-
 arch/mips/include/asm/syscalls.h              | 33 +++++++++++++++++++
 arch/mips/include/asm/tlbex.h                 |  1 +
 arch/mips/include/asm/traps.h                 | 23 +++++++++++++
 arch/mips/include/asm/uasm.h                  |  2 --
 arch/mips/kernel/cpu-probe.c                  |  1 -
 arch/mips/kernel/cpu-r3k-probe.c              |  1 -
 arch/mips/kernel/linux32.c                    |  1 +
 arch/mips/kernel/machine_kexec.c              |  1 +
 arch/mips/kernel/mips-cm.c                    |  2 +-
 arch/mips/kernel/mips-mt-fpaff.c              |  1 +
 arch/mips/kernel/mips-mt.c                    |  1 +
 arch/mips/kernel/module.c                     |  3 +-
 arch/mips/kernel/r4k-bugs64.c                 |  1 +
 arch/mips/kernel/signal-common.h              |  3 ++
 arch/mips/kernel/signal.c                     |  1 +
 arch/mips/kernel/signal32.c                   |  1 +
 arch/mips/kernel/signal_n32.c                 |  4 +--
 arch/mips/kernel/signal_o32.c                 |  1 +
 arch/mips/kernel/smp.c                        |  3 ++
 arch/mips/kernel/spram.c                      |  1 +
 arch/mips/kernel/syscall.c                    |  1 +
 arch/mips/kernel/traps.c                      |  2 --
 arch/mips/kernel/unaligned.c                  |  1 +
 arch/mips/mm/c-r4k.c                          |  6 +---
 arch/mips/mm/cache.c                          |  6 ----
 arch/mips/mm/fault.c                          |  1 +
 arch/mips/mm/init.c                           |  1 +
 arch/mips/mm/pgtable-64.c                     |  2 ++
 arch/mips/mm/tlb-r3k.c                        |  4 +--
 arch/mips/mm/tlb-r4k.c                        |  6 ++--
 arch/mips/power/cpu.c                         |  1 +
 arch/mips/power/hibernate.c                   |  1 +
 drivers/platform/mips/rs780e-acpi.c           | 12 +++----
 48 files changed, 145 insertions(+), 53 deletions(-)
 create mode 100644 arch/mips/boot/compressed/decompress.h
 create mode 100644 arch/mips/include/asm/syscalls.h
Signature · 1 line
2.39.2