Skip to content

Commit b02afe1

Browse files
committed
Merge tag 'xtensa-20230928' of https://github.com/jcmvbkbc/linux-xtensa
Pull Xtensa fixes from Max Filippov: - fix build warnings from builds performed with W=1 * tag 'xtensa-20230928' of https://github.com/jcmvbkbc/linux-xtensa: xtensa: boot/lib: fix function prototypes xtensa: umulsidi3: fix conditional expression xtensa: boot: don't add include-dirs xtensa: iss/network: make functions static xtensa: tlb: include <asm/tlb.h> for missing prototype xtensa: hw_breakpoint: include header for missing prototype xtensa: smp: add headers for missing function prototypes irqchip: irq-xtensa-mx: include header for missing prototype xtensa: traps: add <linux/cpu.h> for function prototype xtensa: stacktrace: include <asm/ftrace.h> for prototype xtensa: signal: include headers for function prototypes xtensa: processor.h: add init_arch() prototype xtensa: ptrace: add prototypes to <asm/ptrace.h> xtensa: irq: include <asm/traps.h> xtensa: fault: include <asm/traps.h> xtensa: add default definition for XCHAL_HAVE_DIV32
2 parents 9ed22ae + f54d02c commit b02afe1

File tree

20 files changed

+35
-8
lines changed

20 files changed

+35
-8
lines changed

arch/xtensa/boot/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010

1111
# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
12-
KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
13-
HOSTFLAGS += -Iarch/$(ARCH)/boot/include
12+
KBUILD_CFLAGS += -fno-builtin
1413

1514
subdir-y := lib
1615
targets += vmlinux.bin vmlinux.bin.gz

arch/xtensa/boot/lib/zmem.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
/* bits taken from ppc */
55

66
extern void *avail_ram, *end_avail;
7+
void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp);
78

8-
void exit (void)
9+
static void exit(void)
910
{
1011
for (;;);
1112
}
1213

13-
void *zalloc(unsigned size)
14+
static void *zalloc(unsigned int size)
1415
{
1516
void *p = avail_ram;
1617

arch/xtensa/include/asm/core.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
#include <variant/core.h>
88

9+
#ifndef XCHAL_HAVE_DIV32
10+
#define XCHAL_HAVE_DIV32 0
11+
#endif
12+
913
#ifndef XCHAL_HAVE_EXCLUSIVE
1014
#define XCHAL_HAVE_EXCLUSIVE 0
1115
#endif

arch/xtensa/include/asm/hw_breakpoint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void arch_uninstall_hw_breakpoint(struct perf_event *bp);
4848
void hw_breakpoint_pmu_read(struct perf_event *bp);
4949
int check_hw_breakpoint(struct pt_regs *regs);
5050
void clear_ptrace_hw_breakpoint(struct task_struct *tsk);
51+
void restore_dbreak(void);
5152

5253
#else
5354

arch/xtensa/include/asm/processor.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <linux/compiler.h>
1616
#include <linux/stringify.h>
17+
18+
#include <asm/bootparam.h>
1719
#include <asm/ptrace.h>
1820
#include <asm/types.h>
1921
#include <asm/regs.h>
@@ -217,6 +219,9 @@ struct mm_struct;
217219

218220
extern unsigned long __get_wchan(struct task_struct *p);
219221

222+
void init_arch(bp_tag_t *bp_start);
223+
void do_notify_resume(struct pt_regs *regs);
224+
220225
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
221226
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->areg[1])
222227

arch/xtensa/include/asm/ptrace.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
106106
return regs->areg[2];
107107
}
108108

109+
int do_syscall_trace_enter(struct pt_regs *regs);
110+
void do_syscall_trace_leave(struct pt_regs *regs);
111+
109112
#else /* __ASSEMBLY__ */
110113

111114
# include <asm/asm-offsets.h>

arch/xtensa/include/asm/smp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ struct cpumask;
2323
void arch_send_call_function_ipi_mask(const struct cpumask *mask);
2424
void arch_send_call_function_single_ipi(int cpu);
2525

26+
void secondary_start_kernel(void);
2627
void smp_init_cpus(void);
2728
void secondary_init_irq(void);
2829
void ipi_init(void);

arch/xtensa/include/asm/tlb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818

1919
#define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte)
2020

21+
void check_tlb_sanity(void);
22+
2123
#endif /* _XTENSA_TLB_H */

arch/xtensa/kernel/hw_breakpoint.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/percpu.h>
1414
#include <linux/perf_event.h>
1515
#include <asm/core.h>
16+
#include <asm/hw_breakpoint.h>
1617

1718
/* Breakpoint currently in use for each IBREAKA. */
1819
static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]);

arch/xtensa/kernel/irq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <asm/mxregs.h>
2929
#include <linux/uaccess.h>
3030
#include <asm/platform.h>
31+
#include <asm/traps.h>
3132

3233
DECLARE_PER_CPU(unsigned long, nmi_count);
3334

0 commit comments

Comments
 (0)