In order to allow serialize() to be used from noinstr code, make it __always_inline.
Unified · Split
| @@ -217,7 +217,7 @@ fail: · 216 unmodified lines | ||
| 217 | 217 | |
| 218 | 218 | #define nop() asm volatile ("nop") |
| 219 | 219 | |
| 220 | −static inline void serialize(void) | |
| 220 | +static __always_inline void serialize(void) | |
| 221 | 221 | { |
| 222 | 222 | /* Instruction opcode for SERIALIZE; supported in binutils >= 2.35. */ |
| 223 | 223 | asm volatile(".byte 0xf, 0x1, 0xe8" ::: "memory"); |