diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-11-28 18:25:37 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-11-28 18:25:37 +0100 |
commit | 0734f5c7eb15f9d3bbdacffe501eabdb8b1c01d2 (patch) | |
tree | f166bc0686fd6b6376f81885c9d9f7288f86f7d8 /arch/mips/include | |
parent | Merge branch 'asm-generic-io.h-cleanup' into asm-generic (diff) | |
parent | arm64: vdso32: Define BUILD_VDSO32_64 to correct prototypes (diff) | |
download | linux-0734f5c7eb15f9d3bbdacffe501eabdb8b1c01d2.tar.xz linux-0734f5c7eb15f9d3bbdacffe501eabdb8b1c01d2.zip |
Merge branch 'asm-generic-prototypes' into asm-generic
As part of my quest to enable -Wmissing-prototypes by default,
these patches clean up some of the prototypes that are needed by all
architectures but are handled inconsistently.
The duplicate prototypes are moved into common code, which helps both
to clean up the existing warnings and simplifies the logic.
* asm-generic-prototypes:
arm64: vdso32: Define BUILD_VDSO32_64 to correct prototypes
csky: fix arch_jump_label_transform_static override
arch: add do_page_fault prototypes
arch: add missing prepare_ftrace_return() prototypes
arch: vdso: consolidate gettime prototypes
arch: include linux/cpu.h for trap_init() prototype
arch: fix asm-offsets.c building with -Wmissing-prototypes
arch: consolidate arch_irq_work_raise prototypes
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/ftrace.h | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/traps.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/include/asm/ftrace.h b/arch/mips/include/asm/ftrace.h index db497a8167da..dc025888f6d2 100644 --- a/arch/mips/include/asm/ftrace.h +++ b/arch/mips/include/asm/ftrace.h @@ -85,6 +85,10 @@ struct dyn_arch_ftrace { }; #endif /* CONFIG_DYNAMIC_FTRACE */ + +void prepare_ftrace_return(unsigned long *parent_ra_addr, unsigned long self_ra, + unsigned long fp); + #endif /* __ASSEMBLY__ */ #endif /* CONFIG_FUNCTION_TRACER */ #endif /* _ASM_MIPS_FTRACE_H */ diff --git a/arch/mips/include/asm/traps.h b/arch/mips/include/asm/traps.h index 15cde638b407..d4d9f8a8fdea 100644 --- a/arch/mips/include/asm/traps.h +++ b/arch/mips/include/asm/traps.h @@ -39,4 +39,7 @@ extern char except_vec_nmi[]; register_nmi_notifier(&fn##_nb); \ }) +asmlinkage void do_page_fault(struct pt_regs *regs, + unsigned long write, unsigned long address); + #endif /* _ASM_TRAPS_H */ |