Skip to content

Commit

Permalink
MIPS: ftrace: Remove redundant #ifdef CONFIG_DYNAMIC_FTRACE
Browse files Browse the repository at this point in the history
There exists redundant #ifdef CONFIG_DYNAMIC_FTRACE in ftrace.c, remove it.

Signed-off-by: Zejiang Tang <tangzejiang@loongson.cn>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Zejiang Tang authored and tsbogend committed Aug 17, 2020
1 parent 9123e3a commit 3911610
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/mips/kernel/ftrace.c
Expand Up @@ -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)
Expand Down

0 comments on commit 3911610

Please sign in to comment.