]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix build failures with CONFIG_NMI_IPI=n
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Jun 2018 11:51:55 +0000 (21:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Jun 2018 13:03:50 +0000 (23:03 +1000)
commit2b9aa2f1c4964b905d32db34f7f1206e47a690b4
tree67f5a6961d4ff56d348e4b40812744d161e61925
parentb959548992dff34b854b3eb5ce90957571ed30c0
powerpc/64s: Fix build failures with CONFIG_NMI_IPI=n

I broke the build when CONFIG_NMI_IPI=n with my recent commit to add
arch_trigger_cpumask_backtrace(), eg:

  stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi'

We should rework the CONFIG symbols here in future to avoid these
double barrelled ifdefs but for now they fix the build.

Fixes: c5e588bd4c2f ("powerpc/64s: Wire up arch_trigger_cpumask_backtrace()")
Reported-by: Christophe LEROY <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/nmi.h
arch/powerpc/kernel/stacktrace.c