]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: build fix for ftraced_suspend
authorIngo Molnar <mingo@elte.hu>
Fri, 11 Jul 2008 14:44:27 +0000 (16:44 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 11 Jul 2008 14:46:50 +0000 (16:46 +0200)
fix:

 kernel/trace/ftrace.c:1615: error: 'ftraced_suspend' undeclared (first use in this function)
 kernel/trace/ftrace.c:1615: error: (Each undeclared identifier is reported only once
 kernel/trace/ftrace.c:1615: error: for each function it appears in.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c

index 1359632668a44ac8d4c5c2527a5373684d34bd4c..4231a3dc224ac1f14460f63f195f7024980545c1 100644 (file)
@@ -1612,7 +1612,9 @@ void ftrace_kill_atomic(void)
 {
        ftrace_disabled = 1;
        ftrace_enabled = 0;
+#ifdef CONFIG_DYNAMIC_FTRACE
        ftraced_suspend = -1;
+#endif
        clear_ftrace_function();
 }