]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
tracing: fix four sparse warnings
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Sun, 22 Mar 2009 17:11:11 +0000 (19:11 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 22 Mar 2009 17:16:54 +0000 (18:16 +0100)
Impact: cleanup.

This patch fixes the following sparse warnings:

 kernel/trace/trace.c:385:9: warning: symbol 'trace_seq_to_buffer' was
 not declared. Should it be static?

 kernel/trace/trace_clock.c:29:13: warning: symbol 'trace_clock_local'
 was not declared. Should it be static?

 kernel/trace/trace_clock.c:54:13: warning: symbol 'trace_clock' was not
 declared. Should it be static?

 kernel/trace/trace_clock.c:74:13: warning: symbol 'trace_clock_global'
 was not declared. Should it be static?

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
LKML-Reference: <1237741871-5827-4-git-send-email-dmitri.vorobiev@movial.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c
kernel/trace/trace_clock.c

index e6fac0ffe6f059f04b8db758cf5360499a65936a..ace685c7018668b58a5b035c5cf7f9b738d555d5 100644 (file)
@@ -382,7 +382,7 @@ ssize_t trace_seq_to_user(struct trace_seq *s, char __user *ubuf, size_t cnt)
        return cnt;
 }
 
-ssize_t trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt)
+static ssize_t trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt)
 {
        int len;
        void *ret;
index 05b176abfd30cbffe335dd49a41b56c0519c30b1..b588fd81f7f996792852e5035278736cdf9bec46 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/percpu.h>
 #include <linux/sched.h>
 #include <linux/ktime.h>
+#include <linux/trace_clock.h>
 
 /*
  * trace_clock_local(): the simplest and least coherent tracing clock.