x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block

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

authored by Nathan Chancellor and committed by Ingo Molnar 27b5de62 fe0ba8c2

Changed files
+1 -1
arch
x86
+1 -1
arch/x86/Makefile
··· 14 14 15 15 ifdef CONFIG_CC_IS_GCC 16 16 RETPOLINE_CFLAGS := $(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register) 17 - RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch-cs-prefix) 18 17 RETPOLINE_VDSO_CFLAGS := $(call cc-option,-mindirect-branch=thunk-inline -mindirect-branch-register) 19 18 endif 20 19 ifdef CONFIG_CC_IS_CLANG 21 20 RETPOLINE_CFLAGS := -mretpoline-external-thunk 22 21 RETPOLINE_VDSO_CFLAGS := -mretpoline 23 22 endif 23 + RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch-cs-prefix) 24 24 25 25 ifdef CONFIG_RETHUNK 26 26 RETHUNK_CFLAGS := -mfunction-return=thunk-extern