From: Will Deacon Date: Thu, 17 Apr 2014 11:37:14 +0000 (+0100) Subject: arm64: debug: remove noisy, pointless warning X-Git-Tag: firefly_0821_release~3680^2~122^2~3^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b3a1128177031c2e5125b1bb4e5ac9af0a708c7;p=firefly-linux-kernel-4.4.55.git 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 Reported-by: Kyrylo Tkachov Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas (cherry picked from commit 43683afbcb32f7b7318ac1badd6469d91fe22711) Signed-off-by: Mark Brown --- diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c index 91a12d0396a2..d202656d9ca1 100644 --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c @@ -320,9 +320,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;