summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/asm-prototypes.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-10-26 15:01:40 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-10-29 00:25:27 +0300
commit6fda8a38865607db739be3e567a2387376222dbd (patch)
tree78e955f7f8a4fd2f8505628ff4c01c2a057dfb30 /arch/x86/include/asm/asm-prototypes.h
parentb6d3d9944bd7c9e8c06994ead3c9952f673f2a66 (diff)
downloadlinux-6fda8a38865607db739be3e567a2387376222dbd.tar.xz
x86/retpoline: Move the retpoline thunk declarations to nospec-branch.h
Because it makes no sense to split the retpoline gunk over multiple headers. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Borislav Petkov <bp@suse.de> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Tested-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/r/20211026120310.106290934@infradead.org
Diffstat (limited to 'arch/x86/include/asm/asm-prototypes.h')
-rw-r--r--arch/x86/include/asm/asm-prototypes.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/include/asm/asm-prototypes.h b/arch/x86/include/asm/asm-prototypes.h
index a2bed09d3c11..8f80de627c60 100644
--- a/arch/x86/include/asm/asm-prototypes.h
+++ b/arch/x86/include/asm/asm-prototypes.h
@@ -17,11 +17,3 @@
extern void cmpxchg8b_emu(void);
#endif
-#ifdef CONFIG_RETPOLINE
-
-#define GEN(reg) \
- extern asmlinkage void __x86_indirect_thunk_ ## reg (void);
-#include <asm/GEN-for-each-reg.h>
-#undef GEN
-
-#endif /* CONFIG_RETPOLINE */