aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-14 15:58:33 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-15 02:36:11 -0500
commite36c54582c6f14adc9e10473e2aec2cc4f0acc03 (patch)
tree057c54ccfd431152486fd781070713ad0e34bb01 /kernel/trace/trace.c
parent0087aabd6a3744c28114240776918f5d15e46b98 (diff)
tracing: Fix return of trace_dump_stack()
The trace_dump_stack() returned a value for a void function. Also, added the missing stub for trace_dump_stack() when tracing is not configured. Reported-by: Ingo Molnar <mingo@elte.hu> LKML-Reference: <20091214162713.GA31060@elte.hu> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index bd7b969a729a..ee61915935d5 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1158,7 +1158,7 @@ void trace_dump_stack(void)
1158 unsigned long flags; 1158 unsigned long flags;
1159 1159
1160 if (tracing_disabled || tracing_selftest_running) 1160 if (tracing_disabled || tracing_selftest_running)
1161 return 0; 1161 return;
1162 1162
1163 local_save_flags(flags); 1163 local_save_flags(flags);
1164 1164