powerpc/powernv: Fix compile without CONFIG_TRACEPOINTS
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 12 Mar 2019 05:07:12 +0000 (16:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Mar 2019 03:59:39 +0000 (14:59 +1100)
The functions returns s64 but the return statement is missing.
This adds the missing return statement.

Fixes: 75d9fc7fd94e ("powerpc/powernv: move OPAL call wrapper tracing and interrupt handling to C")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-call.c

index 578757d403ab8df76b2002ab1f75322677c64e92..daad8c45c8e729d53cf83c3a5011024be178affa 100644 (file)
@@ -86,6 +86,7 @@ static s64 __opal_call_trace(s64 a0, s64 a1, s64 a2, s64 a3,
                             s64 a4, s64 a5, s64 a6, s64 a7,
                              unsigned long opcode, unsigned long msr)
 {
+       return 0;
 }
 
 #define DO_TRACE false