powerpc/eeh: Fix build with STACKTRACE=n
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 13:32:13 +0000 (23:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:01:14 +0000 (00:01 +1000)
commit1b7f3b6c43675ef2cfb9d8f48bde057794820f7c
tree22419164eb728b9e36f25ec300a7e641fcc57b78
parent6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8
powerpc/eeh: Fix build with STACKTRACE=n

The build breaks when STACKTRACE=n, eg. skiroot_defconfig:

  arch/powerpc/kernel/eeh_event.c:124:23: error: implicit declaration of function 'stack_trace_save'

Fix it with some ifdefs for now.

Fixes: 25baf3d81614 ("powerpc/eeh: Defer printing stack trace")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh_driver.c
arch/powerpc/kernel/eeh_event.c