Skip to content

Commit e7e78a6

Browse files
jgross1Brian Maly
authored andcommitted
x86/asm: Make serialize() always_inline
[ Upstream commit ae02ae1 ] 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/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit aba13043e628f0aa17b338f8200e9e92b819554c) FOF: 0225 Signed-off-by: Brian Maly <[email protected]>
1 parent 0af5137 commit e7e78a6

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
@@ -224,7 +224,7 @@ static inline void clwb(volatile void *__p)
224224

225225
#define nop() asm volatile ("nop")
226226

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

0 commit comments

Comments
 (0)