Merge tag 's390-5.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux-2.6-microblaze.git] / arch / powerpc / kernel / eeh_event.c
index 1d55486..a7a8dc1 100644 (file)
@@ -117,12 +117,14 @@ int __eeh_send_failure_event(struct eeh_pe *pe)
         * while the PE is sitting in the event queue.
         */
        if (pe) {
+#ifdef CONFIG_STACKTRACE
                /*
                 * Save the current stack trace so we can dump it from the
                 * event handler thread.
                 */
                pe->trace_entries = stack_trace_save(pe->stack_trace,
                                         ARRAY_SIZE(pe->stack_trace), 0);
+#endif /* CONFIG_STACKTRACE */
 
                eeh_pe_state_mark(pe, EEH_PE_RECOVERING);
        }