History

x86/asm: Make serialize() always_inline

In order to allow serialize() to be used from noinstr code, make it __always_inline.

Juergen Gross committed 1 year ago

Commit ae02ae11 parent de31b3c1 file · +1 −1Browse files

Unified · Split

arch/x86/include/asm/special_insns.h+1−1
@@ -217,7 +217,7 @@ fail: · 216 unmodified lines
217 217
218#define nop() asm volatile ("nop")218#define nop() asm volatile ("nop")
219 219
220static inline void serialize(void)220static __always_inline void serialize(void)
221{221{
222 /* Instruction opcode for SERIALIZE; supported in binutils >= 2.35. */222 /* Instruction opcode for SERIALIZE; supported in binutils >= 2.35. */
223 asm volatile(".byte 0xf, 0x1, 0xe8" ::: "memory");223 asm volatile(".byte 0xf, 0x1, 0xe8" ::: "memory");