korg tester found an issue:

From: Christoph Lameter <[email protected]>
Subject: powerpc: Fix reference to opal_trace_depth.

depth is an address and not a scalar. Use & to determine the address.

Signed-off-by: Christoph Lameter <[email protected]>

Index: linux/arch/powerpc/platforms/powernv/opal-tracepoints.c
===================================================================
--- linux.orig/arch/powerpc/platforms/powernv/opal-tracepoints.c
+++ linux/arch/powerpc/platforms/powernv/opal-tracepoints.c
@@ -48,7 +48,7 @@ void __trace_opal_entry(unsigned long op

        local_irq_save(flags);

-       depth = this_cpu_ptr(opal_trace_depth);
+       depth = this_cpu_ptr(&opal_trace_depth);

        if (*depth)
                goto out;
@@ -69,7 +69,7 @@ void __trace_opal_exit(long opcode, unsi

        local_irq_save(flags);

-       depth = this_cpu_ptr(opal_trace_depth);
+       depth = this_cpu_ptr(&opal_trace_depth);

        if (*depth)
                goto out;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to