Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43683afb authored by Will Deacon's avatar Will Deacon Committed by Catalin Marinas
Browse files

arm64: debug: remove noisy, pointless warning



Sending a SIGTRAP to a user task after execution of a BRK instruction at
EL0 is fundamental to the way in which software breakpoints work and
doesn't deserve a warning to be logged in dmesg. Whilst the warning can
be justified from EL1, do_debug_exception will already do the right thing,
so simply remove the code altogether.

Cc: Sandeepa Prabhu <sandeepa.prabhu@linaro.org>
Reported-by: default avatarKyrylo Tkachov <kyrylo.tkachov@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 2eb835e0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -318,9 +318,6 @@ static int brk_handler(unsigned long addr, unsigned int esr,
	if (call_break_hook(regs, esr) == DBG_HOOK_HANDLED)
		return 0;

	pr_warn("unexpected brk exception at %lx, esr=0x%x\n",
			(long)instruction_pointer(regs), esr);

	if (!user_mode(regs))
		return -EFAULT;