diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-02-01 11:56:44 +0100 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-02-10 09:54:54 +0100 |
commit | 64dff07b1c37b4840a6ef8698dbd2f701a407e48 (patch) | |
tree | 0dc9f6deebb95f8657727c83e7632a984dc7a12b | |
parent | 1f640552d9878f2dbcbd46c78078e4ea2eb2b262 (diff) | |
download | linux-64dff07b1c37b4840a6ef8698dbd2f701a407e48.tar.bz2 |
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 <ardb@kernel.org>
Acked-by: Nick Desaulniers <ndesaulniers@google.com>
-rw-r--r-- | arch/arm/mach-bcm/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile index 7baa8c9427d5..b2394ddb0558 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) |