tracing/ftrace: make trace_find_cmdline() generally available
authorIngo Molnar <mingo@elte.hu>
Mon, 29 Dec 2008 12:02:17 +0000 (13:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 29 Dec 2008 12:06:24 +0000 (13:06 +0100)
commitf7d48cbde5c0710008caeaf7dbf14f4a9b064940
treef7b6bed9338b26bcdb4d95da434eab92463d8a5a
parente302cf3f961ceb54c1dd0aff7ba8531df83be07a
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>
kernel/trace/trace.h