]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/percpu: Enable named address spaces for GCC 9.1+
authorUros Bizjak <ubizjak@gmail.com>
Thu, 21 Mar 2024 16:46:41 +0000 (17:46 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Mar 2024 19:16:20 +0000 (20:16 +0100)
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 <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20240321164647.289879-1-ubizjak@gmail.com
arch/x86/Kconfig

index 09455d93b947f0394c87474f4ee22c6394d0639e..03c9d1100f09401383d67bbe07fc942130ca3261 100644 (file)
@@ -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