x86/asm: Fixup odd GEN-for-each-reg.h usage
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 Oct 2021 12:01:39 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jul 2022 10:53:53 +0000 (12:53 +0200)
commit6a6fcb256301a3f2ca29a1c2adda71c6ab272ab7
tree41c1a9c0f70fde45d6513dd76d5eb41d0e86cdfd
parent71e578e1bd74d716a5cb136dbc55594dbf4450ef
x86/asm: Fixup odd GEN-for-each-reg.h usage

commit b6d3d9944bd7c9e8c06994ead3c9952f673f2a66 upstream.

Currently GEN-for-each-reg.h usage leaves GEN defined, relying on any
subsequent usage to start with #undef, which is rude.

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.041792350@infradead.org
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/asm-prototypes.h
arch/x86/lib/retpoline.S