]> git.baikalelectronics.ru Git - kernel.git/commit
x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block
authorNathan Chancellor <nathan@kernel.org>
Fri, 20 Jan 2023 16:58:27 +0000 (09:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:13 +0000 (11:28 +0100)
commit3bba500465f0cd1eeb423895ca7397d9dd4a5549
treea6dc881d436da7c1cff0d603f3f71097b9fab574
parentfddeb232cbb045ccc64639162c62e47fe5158a4b
x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block

[ Upstream commit 27b5de622ea3fe0ad5a31a0ebd9f7a0a276932d1 ]

LLVM 16 will have support for this flag so move it out of the GCC-only
block to allow LLVM builds to take advantage of it.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://github.com/ClangBuiltLinux/linux/issues/1665
Link: https://github.com/llvm/llvm-project/commit/6f867f9102838ebe314c1f3661fdf95700386e5a
Link: https://lore.kernel.org/r/20230120165826.2469302-1-nathan@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/Makefile