Messages in this thread Patch in this message | | | From | Uros Bizjak <> | Subject | [PATCH 2/4] x86/percpu: Enable named address spaces with known compiler version | Date | Wed, 4 Oct 2023 16:49:42 +0200 |
| |
Enable named address spaces with known compiler version (GCC 13.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.
Cc: Andy Lutomirski <luto@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Nadav Amit <namit@vmware.com> 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: Borislav Petkov <bp@alien8.de> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Uros Bizjak <ubizjak@gmail.com> --- v1: Enable support with known compiler version --- arch/x86/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 66bfabae8814..3aa73f50dc05 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2388,6 +2388,13 @@ source "kernel/livepatch/Kconfig" endmenu +config CC_HAS_NAMED_AS + def_bool CC_IS_GCC && GCC_VERSION >= 130100 + +config USE_X86_SEG_SUPPORT + def_bool y + depends on CC_HAS_NAMED_AS && SMP + config CC_HAS_SLS def_bool $(cc-option,-mharden-sls=all) -- 2.41.0
| |