Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Guo Ren 359ae00d 997153b9

+2
+2
arch/csky/mm/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 ifeq ($(CONFIG_CPU_HAS_CACHEV2),y) 3 3 obj-y += cachev2.o 4 + CFLAGS_REMOVE_cachev2.o = $(CC_FLAGS_FTRACE) 4 5 else 5 6 obj-y += cachev1.o 7 + CFLAGS_REMOVE_cachev1.o = $(CC_FLAGS_FTRACE) 6 8 endif 7 9 8 10 obj-y += dma-mapping.o