]> www.infradead.org Git - users/hch/misc.git/commitdiff
x86/asm: Make serialize() always_inline
authorJuergen Gross <jgross@suse.com>
Wed, 18 Dec 2024 10:09:18 +0000 (11:09 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 16 Jan 2025 15:51:17 +0000 (16:51 +0100)
In order to allow serialize() to be used from noinstr code, make it
__always_inline.

Fixes: 0ef8047b737d ("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
arch/x86/include/asm/special_insns.h

index aec6e2d3aa1d52e5c8f513e188015a45e9eeaeb2..98bfc097389c4e5a95470e9d0780055a09a3c54e 100644 (file)
@@ -217,7 +217,7 @@ fail:
 
 #define nop() asm volatile ("nop")
 
-static inline void serialize(void)
+static __always_inline void serialize(void)
 {
        /* Instruction opcode for SERIALIZE; supported in binutils >= 2.35. */
        asm volatile(".byte 0xf, 0x1, 0xe8" ::: "memory");