From: Ard Biesheuvel Date: Tue, 1 Feb 2022 10:56:44 +0000 (+0100) Subject: ARM: mach-bcm: disable ftrace in SMC invocation routines X-Git-Tag: v5.18-rc1~150^2~7^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64dff07b1c37b4840a6ef8698dbd2f701a407e48;p=thirdparty%2Fkernel%2Flinux.git ARM: mach-bcm: disable ftrace in SMC invocation routines The SMC calling convention uses R7 as an argument register, which conflicts with its use as a frame pointer when building in Thumb2 mode. Given that Clang with ftrace does not permit frame pointers to be disabled, let's omit this compilation unit from ftrace instrumentation. Signed-off-by: Ard Biesheuvel Acked-by: Nick Desaulniers --- diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile index 7baa8c9427d5e..b2394ddb05586 100644 --- a/arch/arm/mach-bcm/Makefile +++ b/arch/arm/mach-bcm/Makefile @@ -40,6 +40,7 @@ obj-$(CONFIG_ARCH_BCM_MOBILE_L2_CACHE) += kona_l2_cache.o # Support for secure monitor traps obj-$(CONFIG_ARCH_BCM_MOBILE_SMC) += bcm_kona_smc.o +CFLAGS_REMOVE_bcm_kona_smc.o += $(CC_FLAGS_FTRACE) # BCM2835 ifeq ($(CONFIG_ARCH_BCM2835),y)