sparc64: Only call smp_fetch_global_regs if CONFIG_MAGIC_SYSRQ is set Fixes this build error: arch/sparc64/kernel/built-in.o: In function `__trigger_all_cpu_backtrace': (.text+0xa88): undefined reference to `smp_fetch_global_regs' Signed-off-by: Friedrich Oslage <bluebird@xxxxxxxxxx> --- arch/sparc64/kernel/process.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index 7f5debd..71d5ea7 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c @@ -311,7 +311,9 @@ void __trigger_all_cpu_backtrace(void) __global_reg_self(tp, regs, this_cpu); +#ifdef CONFIG_MAGIC_SYSRQ smp_fetch_global_regs(); +#endif for_each_online_cpu(cpu) { struct global_reg_snapshot *gp = &global_reg_snapshot[cpu]; -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html