On Thu, 27 Feb 2014 17:33:53 +0530 Rashika Kheria <rashika.khe...@gmail.com> wrote:
> Mark functions as static in kernel/trace/trace.c > because they are not used outside this file. > > This eliminates the following warning in kernel/trace/trace.c: > kernel/trace/trace.c:266:9: warning: no previous prototype for > ‘buffer_ftrace_now’ [-Wmissing-prototypes] > kernel/trace/trace.c:590:6: warning: no previous prototype for > ‘free_snapshot’ [-Wmissing-prototypes] > > Signed-off-by: Rashika Kheria <rashika.khe...@gmail.com> > Reviewed-by: Josh Triplett <j...@joshtriplett.org> Acked-by: Steven Rostedt <rost...@goodmis.org> -- Steve > --- > kernel/trace/trace.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > index 815c878..f097949 100644 > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -263,7 +263,7 @@ int call_filter_check_discard(struct ftrace_event_call > *call, void *rec, > } > EXPORT_SYMBOL_GPL(call_filter_check_discard); > > -cycle_t buffer_ftrace_now(struct trace_buffer *buf, int cpu) > +static cycle_t buffer_ftrace_now(struct trace_buffer *buf, int cpu) > { > u64 ts; > > @@ -587,7 +587,7 @@ static int alloc_snapshot(struct trace_array *tr) > return 0; > } > > -void free_snapshot(struct trace_array *tr) > +static void free_snapshot(struct trace_array *tr) > { > /* > * We don't free the ring buffer. instead, resize it because -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/