ftrace: fix !CONFIG_DYNAMIC_FTRACE ftrace_swapper_pid definition
authorIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 10:48:18 +0000 (11:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 10:50:42 +0000 (11:50 +0100)
Impact: build fix

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

index 6533c1d20155c54365f0ecd6e94f2a3deaec977e..4e6c87ecf1bf58d1199e0d208567ac3fdeed1b44 100644 (file)
@@ -243,14 +243,16 @@ static void ftrace_update_pid_func(void)
        mutex_unlock(&ftrace_lock);
 }
 
+/* set when tracing only a pid */
+struct pid *ftrace_pid_trace;
+static struct pid * const ftrace_swapper_pid = &init_struct_pid;
+
 #ifdef CONFIG_DYNAMIC_FTRACE
+
 #ifndef CONFIG_FTRACE_MCOUNT_RECORD
 # error Dynamic ftrace depends on MCOUNT_RECORD
 #endif
 
-/* set when tracing only a pid */
-struct pid *ftrace_pid_trace;
-static struct pid * const ftrace_swapper_pid = &init_struct_pid;
 static struct hlist_head ftrace_func_hash[FTRACE_FUNC_HASHSIZE] __read_mostly;
 
 struct ftrace_func_hook {