x86: Simplify retpoline declaration
authorPeter Zijlstra <peterz@infradead.org>
Wed, 22 Apr 2020 15:03:22 +0000 (17:03 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 30 Apr 2020 18:14:34 +0000 (20:14 +0200)
commitca3f0d80dd57c8828bfb5bc0bc79750ea7a1ba26
tree610fe8890a2276e3bfa5a93e93c19eca90b30861
parent089dd8e53126ebaf506e2dc0bf89d652c36bfc12
x86: Simplify retpoline declaration

Because of how KSYM works, we need one declaration per line. Seeing
how we're going to be doubling the amount of retpoline symbols,
simplify the machinery in order to avoid having to copy/paste even
more.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200428191700.091696925@infradead.org
arch/x86/include/asm/GEN-for-each-reg.h [new file with mode: 0644]
arch/x86/include/asm/asm-prototypes.h
arch/x86/lib/retpoline.S