From: Uros Bizjak Date: Thu, 21 Mar 2024 16:46:41 +0000 (+0100) Subject: x86/percpu: Enable named address spaces for GCC 9.1+ X-Git-Tag: v6.10-rc1~198^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b429eafe0d9f765d8626e53221ce3108b783da5e;p=thirdparty%2Fkernel%2Flinux.git x86/percpu: Enable named address spaces for GCC 9.1+ Enable named address spaces also for GCC 9, GCC 10 and GCC 11 releases. These compilers all produce kernel images that boot without problems. GCC_VERSION cutoff is arbitrary. It is primary a risk-reduction cutoff, older compilers will be tested and enabled in linux 6.10 release. Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Cc: Andy Lutomirski Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Ard Biesheuvel Cc: Kees Cook Link: https://lore.kernel.org/r/20240321164647.289879-1-ubizjak@gmail.com --- diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 09455d93b947f..03c9d1100f094 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2433,7 +2433,7 @@ source "kernel/livepatch/Kconfig" endmenu config CC_HAS_NAMED_AS - def_bool CC_IS_GCC && GCC_VERSION >= 120100 + def_bool CC_IS_GCC && GCC_VERSION >= 90100 config CC_HAS_NAMED_AS_FIXED_ASAN def_bool CC_IS_GCC && GCC_VERSION >= 130300