From: Zejiang Tang Date: Fri, 14 Aug 2020 02:40:24 +0000 (+0800) Subject: MIPS: ftrace: Remove redundant #ifdef CONFIG_DYNAMIC_FTRACE X-Git-Tag: v5.15~2651^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39116103a7345927fa99644d08bc0cc9d45fea6f;p=platform%2Fkernel%2Flinux-starfive.git MIPS: ftrace: Remove redundant #ifdef CONFIG_DYNAMIC_FTRACE There exists redundant #ifdef CONFIG_DYNAMIC_FTRACE in ftrace.c, remove it. Signed-off-by: Zejiang Tang Reviewed-by: Steven Rostedt (VMware) Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/kernel/ftrace.c b/arch/mips/kernel/ftrace.c index 2625232..f57e68f 100644 --- a/arch/mips/kernel/ftrace.c +++ b/arch/mips/kernel/ftrace.c @@ -37,10 +37,6 @@ void arch_ftrace_update_code(int command) ftrace_modify_all_code(command); } -#endif - -#ifdef CONFIG_DYNAMIC_FTRACE - #define JAL 0x0c000000 /* jump & link: ip --> ra, jump to target */ #define ADDR_MASK 0x03ffffff /* op_code|addr : 31...26|25 ....0 */ #define JUMP_RANGE_MASK ((1UL << 28) - 1)