powerpc/powernv: Fix no return statement issue in __opal_call_trace()
PATCH 1/1 powerpc/powernv: Fix no return statement issue in __opal_call_trace()
Commit 75d9fc7fd94e ("powerpc/powernv: move OPAL call wrapper tracing and interrupt handling to C") adds the function:
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)
{
}
However, that causes the following compilation error:
$ make skiroot_defconfig $ make -j$(nproc) ... arch/powerpc/platforms/powernv/opal-call.c: In function ‘__opal_call_trace’: arch/powerpc/platforms/powernv/opal-call.c:89:1: error: no return statement in function returning non-void [-Werror=return-type]
This patch fixes the issue by returning zero as suggested by the author of the commit.
Fixes 75d9fc7fd94e ("powerpc/powernv: move OPAL call wrapper tracing and interrupt handling to C")
Signed-off-by Claudio Carvalho <[email protected]>
CC Nicholas Piggin <[email protected]>
--- arch/powerpc/platforms/powernv/opal-call.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powernv/opal-call.c +1 -0
@@ -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
Signature · 1 line
2.7.4