[PATCH] arm64: Use %pB to print backtrace symbols

From: Daniel Thompson
Date: Tue Nov 06 2018 - 06:59:56 EST


Currently arm64 uses %pS to print backtrace symbols but %pB (which takes
into consideration the effect of compiler optimisations which may occur
when tail-calls are used and marked with the noreturn GCC attribute)
is a better alternative.

Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>
---
arch/arm64/kernel/traps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index 5f4d9acb32f5..ea571d3a1373 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -62,7 +62,7 @@ int show_unhandled_signals = 0;

static void dump_backtrace_entry(unsigned long where)
{
- printk(" %pS\n", (void *)where);
+ printk(" %pB\n", (void *)where);
}

static void __dump_instr(const char *lvl, struct pt_regs *regs)
--
2.19.1