diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-02-02 09:58:42 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-02-21 15:43:24 +0800 |
commit | 359ae00d12589c31cf103894d0f32588d523ca83 (patch) | |
tree | 342c0370d09ec4e72d8f894212c79090cf53fad4 /arch/csky | |
parent | 997153b9a75c08d545ad45e6f8ceb432435d2425 (diff) | |
download | linux-stable-359ae00d12589c31cf103894d0f32588d523ca83.tar.gz linux-stable-359ae00d12589c31cf103894d0f32588d523ca83.tar.bz2 linux-stable-359ae00d12589c31cf103894d0f32588d523ca83.zip |
csky: Fixup ftrace modify panic
During ftrace init, linux will replace all function prologues
(call_mcout) with nops, but it need flush_dcache and
invalidate_icache to make it work. So flush_cache functions
couldn't be nested called by ftrace framework.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky')
-rw-r--r-- | arch/csky/mm/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/csky/mm/Makefile b/arch/csky/mm/Makefile index 2c51918eb4fc..6e7696e55f71 100644 --- a/arch/csky/mm/Makefile +++ b/arch/csky/mm/Makefile @@ -1,8 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only ifeq ($(CONFIG_CPU_HAS_CACHEV2),y) obj-y += cachev2.o +CFLAGS_REMOVE_cachev2.o = $(CC_FLAGS_FTRACE) else obj-y += cachev1.o +CFLAGS_REMOVE_cachev1.o = $(CC_FLAGS_FTRACE) endif obj-y += dma-mapping.o |