diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 900b409543db10cfc46b9da703f463a1cee9b78e..1276b3ca15982b8a55dea94a6f2cf8e3d688640f 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -152,7 +152,6 @@ void clear_ftrace_function(void)
 	ftrace_pid_function = ftrace_stub;
 }
 
-#undef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
 #ifndef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
 /*
  * For those archs that do not test ftrace_trace_stop in their