x86/acpi: Annotate indirect branch as safe
[sfrench/cifs-2.6.git] / arch / x86 / kernel / acpi / wakeup_64.S
index 5d3a0b8fd37981563530a2c8c2b86f6957693c9a..9c9c66662adab5b4ee26a3a37386a153fa64b0aa 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/msr.h>
 #include <asm/asm-offsets.h>
 #include <asm/frame.h>
+#include <asm/nospec-branch.h>
 
 # Copyright 2003 Pavel Machek <pavel@suse.cz
 
@@ -39,6 +40,7 @@ SYM_FUNC_START(wakeup_long64)
        movq    saved_rbp, %rbp
 
        movq    saved_rip, %rax
+       ANNOTATE_RETPOLINE_SAFE
        jmp     *%rax
 SYM_FUNC_END(wakeup_long64)