x86/percpu: Enable named address spaces with known compiler version
authorUros Bizjak <ubizjak@gmail.com>
Wed, 4 Oct 2023 14:49:42 +0000 (16:49 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Oct 2023 07:01:52 +0000 (09:01 +0200)
commit1ca3683cc6d2c2ce4204df519c4e4730d037905a
tree130f3f1453734365678b775f602b5751a5973bde
parent8ae292c66dcb160b3e1e16b66c3076d5a2c63873
x86/percpu: Enable named address spaces with known compiler version

Enable named address spaces with known compiler versions
(GCC 12.1 and later) in order to avoid possible issues with named
address spaces with older compilers. Set CC_HAS_NAMED_AS when the
compiler satisfies version requirements and set USE_X86_SEG_SUPPORT
to signal when segment qualifiers could be used.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20231004145137.86537-3-ubizjak@gmail.com
arch/x86/Kconfig