tracing: Fix function declarations if !CONFIG_STACKTRACE
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 10 May 2010 03:23:00 +0000 (11:23 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 14 May 2010 18:33:24 +0000 (14:33 -0400)
ftrace_trace_stack() and frace_trace_userstacke() take a
struct ring_buffer argument, not struct trace_array. Commit
e77405ad("tracing: pass around ring buffer instead of tracer")
made this change.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4BE77C14.5010806@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.h

index 63562595f2b258a769b3587246cd3eead0730ae5..40cd1718fb1b9b02da4cd8fc9839d8282ad287f9 100644 (file)
@@ -419,12 +419,12 @@ void ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags,
 void __trace_stack(struct trace_array *tr, unsigned long flags, int skip,
                   int pc);
 #else
-static inline void ftrace_trace_stack(struct trace_array *tr,
+static inline void ftrace_trace_stack(struct ring_buffer *buffer,
                                      unsigned long flags, int skip, int pc)
 {
 }
 
-static inline void ftrace_trace_userstack(struct trace_array *tr,
+static inline void ftrace_trace_userstack(struct ring_buffer *buffer,
                                          unsigned long flags, int pc)
 {
 }