diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2024-12-03 20:44:49 +0100 |
---|---|---|
committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2025-02-26 21:09:43 +0530 |
commit | d856bc3ac7d9ca88b3f52d8e08e58ce892dc3ce1 (patch) | |
tree | 16ef1c4e669de8b800c447f0f93fff5ae20d99bc /kernel/static_call_inline.c | |
parent | 65acbd1285f7fe8c8b82cb90e4db923db5b9fe03 (diff) |
static_call_inline: Provide trampoline address when updating sites
In preparation of support of inline static calls on powerpc, provide
trampoline address when updating sites, so that when the destination
function is too far for a direct function call, the call site is
patched with a call to the trampoline.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/5efe0cffc38d6f69b1ec13988a99f1acff551abf.1733245362.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'kernel/static_call_inline.c')
-rw-r--r-- | kernel/static_call_inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/static_call_inline.c b/kernel/static_call_inline.c index bb7d066a7c39..a297790b7333 100644 --- a/kernel/static_call_inline.c +++ b/kernel/static_call_inline.c @@ -206,7 +206,7 @@ void __static_call_update(struct static_call_key *key, void *tramp, void *func) continue; } - arch_static_call_transform(site_addr, NULL, func, + arch_static_call_transform(site_addr, tramp, func, static_call_is_tail(site)); } } |