[PATCH kernel] powerpc/powernv: Fix compile without CONFIG_TRACEPOINTS

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2706d

2 messages, 2 authors, 2019-03-14 · open the first message on its own page

[PATCH kernel] powerpc/powernv: Fix compile without CONFIG_TRACEPOINTS

From: Alexey Kardashevskiy <hidden>
Date: 2019-03-12 05:09:17

The functions returns s64 but the return statement is missing.
This adds the missing return statement.

Signed-off-by: Alexey Kardashevskiy <redacted>
---

Just in case if this has not been caught just yet :)


---
 arch/powerpc/platforms/powernv/opal-call.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/platforms/powernv/opal-call.c b/arch/powerpc/platforms/powernv/opal-call.c
index 578757d403ab..daad8c45c8e7 100644
--- a/arch/powerpc/platforms/powernv/opal-call.c
+++ b/arch/powerpc/platforms/powernv/opal-call.c
@@ -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
-- 
2.17.1

Re: [kernel] powerpc/powernv: Fix compile without CONFIG_TRACEPOINTS

From: Michael Ellerman <hidden>
Date: 2019-03-14 11:53:37

On Tue, 2019-03-12 at 05:07:12 UTC, Alexey Kardashevskiy wrote:
The functions returns s64 but the return statement is missing.
This adds the missing return statement.

Signed-off-by: Alexey Kardashevskiy <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/1702877621ff1c8a737857b71d379510

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help