Skip to content

Commit 6724ba8

Browse files
author
Ingo Molnar
committed
x86/callthunks: Mark apply_relocation() as __init_or_module
Do it like the rest of the methods using it. Signed-off-by: Ingo Molnar <[email protected]> Cc: Uros Bizjak <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0978d64 commit 6724ba8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/include/asm/text-patching.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static inline void apply_paravirt(struct paravirt_patch_site *start,
1818
#define __parainstructions_end NULL
1919
#endif
2020

21-
void apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len);
21+
extern void apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len);
2222

2323
/*
2424
* Currently, the max observed size in the kernel code is

arch/x86/kernel/alternative.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ bool need_reloc(unsigned long offset, u8 *src, size_t src_len)
325325
return (target < src || target > src + src_len);
326326
}
327327

328-
void apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len)
328+
void __init_or_module apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len)
329329
{
330330
int prev, target = 0;
331331

0 commit comments

Comments
 (0)