Skip to content

xtensa: fix W=1 build warnings

Randy Dunlap 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/16xtensa: FSF: define XCHAL_HAVE_DIV32arch/xtensa/variants/fsf/include/variant/core.h+1 -01 reply
2/16xtensa: fault: include <asm/traps.h>arch/xtensa/mm/fault.c+1 -00 replies
3/16xtensa: irq: include <asm/traps.h>arch/xtensa/kernel/irq.c+1 -00 replies
4/16xtensa: ptrace: add prototypes to <asm/ptrace.h>arch/xtensa/include/asm/ptrace.h arch/xtensa/kernel/ptrace.c+3 -10 replies
5/16xtensa: processor.h: add init_arch() prototypearch/xtensa/include/asm/processor.h+4 -00 replies
6/16xtensa: signal: include headers for function prototypesarch/xtensa/include/asm/processor.h arch/xtensa/kernel/signal.c+3 -00 replies
7/16xtensa: stacktrace: include <asm/ftrace.h> for prototypearch/xtensa/kernel/stacktrace.c+1 -00 replies
8/16xtensa: traps: add <linux/cpu.h> for function prototypearch/xtensa/kernel/traps.c+1 -00 replies
9/16irqchip: irq-xtensa-mx: include header for missing prototypedrivers/irqchip/irq-xtensa-mx.c+1 -02 replies
10/16xtensa: smp: add headers for missing function prototypesarch/xtensa/include/asm/smp.h arch/xtensa/kernel/smp.c+2 -00 replies
11/16xtensa: hw_breakpoint: include header for missing prototypearch/xtensa/include/asm/hw_breakpoint.h arch/xtensa/kernel/hw_breakpoint.c+2 -00 replies
12/16xtensa: tlb: include <asm/tlb.h> for missing prototypearch/xtensa/include/asm/tlb.h arch/xtensa/mm/tlb.c+3 -00 replies
13/16xtensa: iss/network: make functions staticarch/xtensa/platforms/iss/network.c+2 -20 replies
14/16xtensa: boot: don't add include-dirsarch/xtensa/boot/Makefile+1 -20 replies
15/16xtensa: umulsidi3: fix conditional expressionarch/xtensa/lib/umulsidi3.S+3 -10 replies
16/16xtensa: boot/lib: add missing prototypes for functionsarch/xtensa/boot/lib/zmem.c+4 -01 reply

Reviews trailers per patch

1 of 16 patches has a Reviewed-by or Acked-by.

PatchMarc Zyngier
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16A-b
10/16
11/16
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.

Read the v1 thread

Cover letter [PATCH 00/16] xtensa: fix W=1 build warnings

This series fixes all xtensa W=1 build warnings that I have seen with the exception of some in arch/xtensa/boot/. [1]

These have been through defconfig, allnoconfig, tinyconfig, allyesconfig, allmodconfig, and many randconfig builds.

[PATCH 01/16] xtensa: FSF: define XCHAL_HAVE_DIV32
[PATCH 02/16] xtensa: fault: include <asm/traps.h>
[PATCH 03/16] xtensa: irq: include <asm/traps.h>
[PATCH 04/16] xtensa: ptrace: add prototypes to <asm/ptrace.h> [PATCH 05/16] xtensa: processor.h: add init_arch() prototype [PATCH 06/16] xtensa: signal: include headers for function prototypes [PATCH 07/16] xtensa: stacktrace: include <asm/ftrace.h> for prototype [PATCH 08/16] xtensa: traps: add <linux/cpu.h> for function prototype [PATCH 09/16] irqchip: irq-xtensa-mx: include header for missing prototype [PATCH 10/16] xtensa: smp: add headers for missing function prototypes [PATCH 11/16] xtensa: hw_breakpoing: include header for missing prototype [PATCH 12/16] xtensa: tlb: include <asm/tlb.h> for missing prototype [PATCH 13/16] xtensa: iss/network: make functions static [PATCH 14/16] xtensa: boot: don't add include-dirs
[PATCH 15/16] xtensa: umulsidi3: fix conditional expression [PATCH 16/16] xtensa: boot/lib: add missing prototypes for functions

1:
arch/xtensa/boot/boot-elf/bootstrap.S:68: Warning: value 0x1a0003000 truncated to 0xa0003000

 arch/xtensa/boot/Makefile                       |    3 +--
 arch/xtensa/boot/lib/zmem.c                     |    4 ++++
 arch/xtensa/include/asm/hw_breakpoint.h         |    1 +
 arch/xtensa/include/asm/processor.h             |    5 +++++
 arch/xtensa/include/asm/ptrace.h                |    3 +++
 arch/xtensa/include/asm/smp.h                   |    1 +
 arch/xtensa/include/asm/tlb.h                   |    2 ++
 arch/xtensa/kernel/hw_breakpoint.c              |    1 +
 arch/xtensa/kernel/irq.c                        |    1 +
 arch/xtensa/kernel/ptrace.c                     |    1 -
 arch/xtensa/kernel/signal.c                     |    2 ++
 arch/xtensa/kernel/smp.c                        |    1 +
 arch/xtensa/kernel/stacktrace.c                 |    1 +
 arch/xtensa/kernel/traps.c                      |    1 +
 arch/xtensa/lib/umulsidi3.S                     |    4 +++-
 arch/xtensa/mm/fault.c                          |    1 +
 arch/xtensa/mm/tlb.c                            |    1 +
 arch/xtensa/platforms/iss/network.c             |    4 ++--
 arch/xtensa/variants/fsf/include/variant/core.h |    1 +
 drivers/irqchip/irq-xtensa-mx.c                 |    1 +
 20 files changed, 33 insertions(+), 6 deletions(-)
Cc Chris Zankel <[email protected]>
Cc Max Filippov <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>