x86: Add straight-line-speculation mitigation
[platform/kernel/linux-rpi.git] / arch / x86 / kernel / ftrace.c
index 1b3ce3b..847776c 100644 (file)
@@ -308,7 +308,7 @@ union ftrace_op_code_union {
        } __attribute__((packed));
 };
 
-#define RET_SIZE               1
+#define RET_SIZE               1 + IS_ENABLED(CONFIG_SLS)
 
 static unsigned long
 create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size)