Skip to content

Commit ae02ae1

Browse files
jgross1bp3tk0v
authored andcommitted
x86/asm: Make serialize() always_inline
In order to allow serialize() to be used from noinstr code, make it __always_inline. Fixes: 0ef8047 ("x86/static-call: provide a way to do very early static-call updates") Closes: https://lore.kernel.org/oe-kbuild-all/202412181756.aJvzih2K-lkp@intel.com/ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20241218100918.22167-1-jgross@suse.com
1 parent de31b3c commit ae02ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/special_insns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static inline int write_user_shstk_64(u64 __user *addr, u64 val)
217217

218218
#define nop() asm volatile ("nop")
219219

220-
static inline void serialize(void)
220+
static __always_inline void serialize(void)
221221
{
222222
/* Instruction opcode for SERIALIZE; supported in binutils >= 2.35. */
223223
asm volatile(".byte 0xf, 0x1, 0xe8" ::: "memory");

0 commit comments

Comments
 (0)