Skip to content

ARM: address -Wmissing-prototype warnings

Arnd Bergmann linux-arm-kernel linux-pm linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16ARM: dma-mapping: hide unused dma_contiguous_early_fixup functionarch/arm/mm/dma-mapping.c+2 -00 replies
2/16ARM: traps: hide unused functions on NOMMUarch/arm/kernel/traps.c+2 -00 replies
3/16ARM: vfp: include asm/neon.h in vfpmodule.carch/arm/vfp/vfpmodule.c+1 -00 replies
4/16ARM: vdso: add missing prototypesarch/arm/include/asm/vdso.h arch/arm/vdso/vgettimeofday.c+7 -00 replies
5/16ARM: kprobes: avoid missing-declaration warningsarch/arm/probes/kprobes/checkers-common.c arch/arm/probes/kprobes/core.c arch/arm/probes/kprobes/opt-arm.c +2 more+7 -51 reply
6/16ARM: tcm: move tcm_init() prototype to asm/tcm.harch/arm/include/asm/tcm.h arch/arm/mm/mmu.c arch/arm/mm/tcm.h+9 -211 reply
7/16ARM: add prototype for function called only from asmarch/arm/include/asm/ftrace.h arch/arm/include/asm/ptrace.h arch/arm/include/asm/signal.h +6 more+35 -00 replies
8/16ARM: add clear/copy_user_highpage declarationsarch/arm/include/asm/page.h+22 -00 replies
9/16ARM: cacheflush: avoid __flush_anon_page() missing-prototype warningarch/arm/mm/flush.c+1 -00 replies
10/16ARM: nommu: include asm/idmap.harch/arm/mm/nommu.c+1 -00 replies
11/16ARM: move setup functions to headerarch/arm/include/asm/setup.h arch/arm/kernel/setup.c+7 -71 reply
12/16ARM: fiq: include asm/mach/irq.h for prototypesarch/arm/kernel/fiq.c+1 -00 replies
13/16ARM: vfp: add vfp_entry prototypearch/arm/vfp/vfp.h+3 -01 reply
14/16ARM: add missing syscall prototypesarch/arm/include/asm/syscalls.h arch/arm/kernel/signal.c arch/arm/kernel/sys_arm.c +1 more+55 -00 replies
15/16ARM: decompressor: move function prototypes to misc.harch/arm/boot/compressed/atags_to_fdt.c arch/arm/boot/compressed/fdt_check_mem_start.c arch/arm/boot/compressed/misc.c +1 more+13 -60 replies
16/16ARM: xip-kernel: add __inflate_kernel_data prototypearch/arm/kernel/head-inflate-data.c arch/arm/kernel/head.h+9 -40 replies

Reviews trailers per patch

3 of 16 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKees CookMasami Hiramatsu (Google)Linus Walleij
SeriesR-b
1/16
2/16
3/16
4/16
5/16A-b
6/16R-b
7/16
8/16
9/16
10/16
11/16R-b
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/16] ARM: address -Wmissing-prototype warnings

From: Arnd Bergmann <[email protected]>

This addresses all arm specific warnings outside of the mach-*/ code, which I've submitted separately. The majority of the patches should be straightforward, either adding an #include statement to get the right header, or ensuring that an unused global function is left out of the build when the prototype is hidden.

The ones that are a bit awkward are those that just add a prototype to shut up the warning, but the prototypes are never used for calling the function because the only caller is in assembler code. I tried to come up with other ways to shut up the compiler, and ideally this would be triggered by the 'asmlinkage' keyword as Ard suggested in the past, but I could not come up with a way to do this.

All of the warnings have to be addressed in some form before the warning can be enabled by default.

Arnd

Arnd Bergmann (16):
ARM: dma-mapping: hide unused dma_contiguous_early_fixup function
ARM: traps: hide unused functions on NOMMU
ARM: vfp: include asm/neon.h in vfpmodule.c
ARM: vdso: add missing prototypes
ARM: kprobes: avoid missing-declaration warnings
ARM: tcm: move tcm_init() prototype to asm/tcm.h
ARM: add prototype for function called only from asm
ARM: add clear/copy_user_highpage declarations
ARM: cacheflush: avoid __flush_anon_page() missing-prototype warning
ARM: nommu: include asm/idmap.h
ARM: move setup functions to header
ARM: fiq: include asm/mach/irq.h for prototypes
ARM: vfp: add vfp_entry prototype
ARM: add missing syscall prototypes
ARM: decompressor: move function prototypes to misc.h
ARM: xip-kernel: add __inflate_kernel_data prototype

 arch/arm/boot/compressed/atags_to_fdt.c       |  1 +
 .../arm/boot/compressed/fdt_check_mem_start.c |  1 +
 arch/arm/boot/compressed/misc.c               |  6 ---
 arch/arm/boot/compressed/misc.h               | 11 ++++
 arch/arm/include/asm/ftrace.h                 |  4 ++
 arch/arm/include/asm/page.h                   | 22 ++++++++
 arch/arm/include/asm/ptrace.h                 |  3 ++
 arch/arm/include/asm/setup.h                  |  7 +++
 arch/arm/include/asm/signal.h                 |  5 ++
 arch/arm/include/asm/spectre.h                |  4 ++
 arch/arm/include/asm/suspend.h                |  1 +
 arch/arm/include/asm/syscalls.h               | 51 +++++++++++++++++++
 arch/arm/include/asm/tcm.h                    | 11 ++--
 arch/arm/include/asm/traps.h                  |  9 ++++
 arch/arm/include/asm/unwind.h                 |  4 ++
 arch/arm/include/asm/vdso.h                   |  5 ++
 arch/arm/include/asm/vfp.h                    |  1 +
 arch/arm/kernel/fiq.c                         |  1 +
 arch/arm/kernel/head-inflate-data.c           |  5 +-
 arch/arm/kernel/head.h                        |  8 +++
 arch/arm/kernel/setup.c                       |  7 ---
 arch/arm/kernel/signal.c                      |  1 +
 arch/arm/kernel/sys_arm.c                     |  1 +
 arch/arm/kernel/sys_oabi-compat.c             |  2 +
 arch/arm/kernel/traps.c                       |  2 +
 arch/arm/mm/dma-mapping.c                     |  2 +
 arch/arm/mm/fault.h                           |  4 ++
 arch/arm/mm/flush.c                           |  1 +
 arch/arm/mm/mmu.c                             |  2 +-
 arch/arm/mm/nommu.c                           |  1 +
 arch/arm/mm/tcm.h                             | 17 -------
 arch/arm/probes/kprobes/checkers-common.c     |  2 +-
 arch/arm/probes/kprobes/core.c                |  2 +-
 arch/arm/probes/kprobes/opt-arm.c             |  2 -
 arch/arm/probes/kprobes/test-core.c           |  2 +-
 arch/arm/probes/kprobes/test-core.h           |  4 ++
 arch/arm/vdso/vgettimeofday.c                 |  2 +
 arch/arm/vfp/vfp.h                            |  3 ++
 arch/arm/vfp/vfpmodule.c                      |  1 +
 39 files changed, 175 insertions(+), 43 deletions(-)
 create mode 100644 arch/arm/include/asm/syscalls.h
 create mode 100644 arch/arm/kernel/head.h
 delete mode 100644 arch/arm/mm/tcm.h

To: Russell King <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

Signature · 7 lines
2.39.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel