Commit 80d023f0 authored by Jian Huang's avatar Jian Huang Committed by Philippe Gerum
Browse files

x86: dovetail: fix build warning in trap handlers



When both CONFIG_KGDB_LOW_LEVEL_TRAP and CONFIG_KPROBES are not enabled, a build
warning appears:

arch/x86/kernel/traps.c: In function ‘do_int3’:
arch/x86/kernel/traps.c:692:1: warning: label ‘exit’ defined but not used [-Wunused-label]
exit:
^~~~

We saw this warning only in evl/v5.4.
Signed-off-by: default avatarJian Huang <huang.jian@zte.com.cn>
parent 21ca1a87
......@@ -680,13 +680,14 @@ dotraplinkage void notrace do_int3(struct pt_regs *regs, long error_code)
flags = pipelined_fault_entry(X86_TRAP_BP, regs);
if (notify_die(DIE_INT3, "int3", regs, error_code, X86_TRAP_BP,
SIGTRAP) == NOTIFY_STOP)
goto exit_fault;
SIGTRAP) == NOTIFY_STOP) {
pipelined_fault_exit(X86_TRAP_BP, regs, flags);
goto exit;
}
cond_local_irq_enable(regs);
do_trap(X86_TRAP_BP, SIGTRAP, "int3", regs, error_code, 0, NULL);
cond_local_irq_disable(regs);
exit_fault:
pipelined_fault_exit(X86_TRAP_BP, regs, flags);
exit:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment