diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-29 07:02:17 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-29 07:06:24 -0500 |
commit | f7d48cbde5c0710008caeaf7dbf14f4a9b064940 (patch) | |
tree | f7b6bed9338b26bcdb4d95da434eab92463d8a5a /kernel/trace/trace.h | |
parent | e302cf3f961ceb54c1dd0aff7ba8531df83be07a (diff) |
tracing/ftrace: make trace_find_cmdline() generally available
Impact: build fix
On !CONFIG_CONTEXT_SWITCH_TRACER trace_find_cmdline() is not defined:
kernel/trace/trace_output.c: In function 'trace_ctxwake_print':
kernel/trace/trace_output.c:499: error: implicit declaration of function 'trace_find_cmdline'
kernel/trace/trace_output.c:499: warning: assignment makes pointer from integer without a cast
Move it to the generic section in trace.h.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 05fa804d1c16..a8b624ccd4d6 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -469,10 +469,10 @@ struct tracer_switch_ops { | |||
469 | void *private; | 469 | void *private; |
470 | struct tracer_switch_ops *next; | 470 | struct tracer_switch_ops *next; |
471 | }; | 471 | }; |
472 | |||
473 | char *trace_find_cmdline(int pid); | ||
474 | #endif /* CONFIG_CONTEXT_SWITCH_TRACER */ | 472 | #endif /* CONFIG_CONTEXT_SWITCH_TRACER */ |
475 | 473 | ||
474 | extern char *trace_find_cmdline(int pid); | ||
475 | |||
476 | #ifdef CONFIG_DYNAMIC_FTRACE | 476 | #ifdef CONFIG_DYNAMIC_FTRACE |
477 | extern unsigned long ftrace_update_tot_cnt; | 477 | extern unsigned long ftrace_update_tot_cnt; |
478 | #define DYN_FTRACE_TEST_NAME trace_selftest_dynamic_test_func | 478 | #define DYN_FTRACE_TEST_NAME trace_selftest_dynamic_test_func |