summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2023-11-30 20:15:51 +0100
committerIngo Molnar <mingo@kernel.org>2023-11-30 20:15:51 +0100
commit6724ba89e0b03667d56616614f55e1f772d38fdb (patch)
tree6ead218356b4dee55cfa7f74114e1256bde782de /arch/x86/include/asm
parent0978d64f9406122c369d5f46e1eb855646f6c32c (diff)
x86/callthunks: Mark apply_relocation() as __init_or_module
Do it like the rest of the methods using it. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Uros Bizjak <ubizjak@gmail.com> Link: https://lore.kernel.org/r/20231105213731.1878100-3-ubizjak@gmail.com
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/text-patching.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/text-patching.h b/arch/x86/include/asm/text-patching.h
index ba8d900f3ebe..fb338f00d383 100644
--- a/arch/x86/include/asm/text-patching.h
+++ b/arch/x86/include/asm/text-patching.h
@@ -18,7 +18,7 @@ static inline void apply_paravirt(struct paravirt_patch_site *start,
#define __parainstructions_end NULL
#endif
-void apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len);
+extern void apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len);
/*
* Currently, the max observed size in the kernel code is