@@ -23,7 +23,6 @@ static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs,
#define arch_exit_to_user_mode_prepare arch_exit_to_user_mode_prepare
void handle_page_fault(struct pt_regs *regs);
-void handle_break(struct pt_regs *regs);
#ifdef CONFIG_RISCV_MISALIGNED
int handle_misaligned_load(struct pt_regs *regs);
@@ -270,7 +270,7 @@ static bool probe_breakpoint_handler(struct pt_regs *regs)
return user ? uprobe_breakpoint_handler(regs) : kprobe_breakpoint_handler(regs);
}
-void handle_break(struct pt_regs *regs)
+static void handle_break(struct pt_regs *regs)
{
if (probe_single_step_handler(regs))
return;
handle_break() is only called in traps.c, make it static. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> --- arch/riscv/include/asm/entry-common.h | 1 - arch/riscv/kernel/traps.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)