From: Nick Desaulniers Date: Mon, 24 Oct 2022 19:45:17 +0000 (+0100) Subject: ARM: 9264/1: only use -mtp=cp15 for the compiler X-Git-Tag: v6.6.7~3915^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26b12e084bce78f339bf9069ff25e0128313d9bc;p=platform%2Fkernel%2Flinux-starfive.git ARM: 9264/1: only use -mtp=cp15 for the compiler Avoids an error from the assembler for CONFIG_THUMB2 kernels: clang-15: error: hardware TLS register is not supported for the thumbv4t sub-architecture This flag only makes sense to pass to the compiler, not the assembler. Perhaps CFLAGS_ABI can be renamed to CPPFLAGS_ABI to reflect that they will be passed to both the compiler and assembler for sources that require pre-processing. Reviewed-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Signed-off-by: Russell King (Oracle) --- diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 34bf504..5fdd6b9 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -111,7 +111,7 @@ CFLAGS_ABI += -meabi gnu endif ifeq ($(CONFIG_CURRENT_POINTER_IN_TPIDRURO),y) -CFLAGS_ABI += -mtp=cp15 +KBUILD_CFLAGS += -mtp=cp15 endif # Accept old syntax despite ".syntax unified"