[PATCH 26/46] kernel: Mark functions as static in kernel/trace/trace.c

From: Rashika Kheria
Date: Thu Feb 27 2014 - 07:06:20 EST


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.kheria@xxxxxxxxx>
Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
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
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/