Thread (29 messages) 29 messages, 3 authors, 2022-09-28

Re: [PATCH v2 5/6] powerpc/64: Add support for out-of-line static calls

From: Benjamin Gray <hidden>
Date: 2022-09-27 03:22:34

On Mon, 2022-09-26 at 14:54 +0000, Christophe Leroy wrote:
quoted
diff --git a/arch/powerpc/kernel/static_call.c
b/arch/powerpc/kernel/static_call.c
index 863a7aa24650..ecbb74e1b4d3 100644
--- a/arch/powerpc/kernel/static_call.c
+++ b/arch/powerpc/kernel/static_call.c
@@ -4,30 +4,108 @@
  
  #include <asm/code-patching.h>
  
+static void* ppc_function_toc(u32 *func)
+{
+#ifdef CONFIG_PPC64_ELF_ABI_V2
Can you use IS_ENABLED(CONFIG_PPC64_ELF_ABI_V2) instead ?
I tried when implementing it, but the `(u64) func` cast is an issue. I
could side step it and use `unsigned long` if that's preferable?
Otherwise I like being explicit about the size, it's a delicate
function.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help