diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-05-05 19:22:53 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-05-05 19:22:53 -0400 |
commit | 94487d6d53af5acae10cf9fd52f74498994d46b1 (patch) | |
tree | 4aac17393ab74d234d1f7da064758d6ebf047120 /kernel/trace | |
parent | 31b6e76e21b2ffd3cb2f6fe4149790a9fdadce2d (diff) |
tracing: use proper export symbol for tracing api
When adding the EXPORT_SYMBOL to some of the tracing API, I accidently
used EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL. This patch fixes
that mistake.
[ Impact: export the tracing code only for GPL modules ]
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 74df029056b0..4164a344e72a 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -887,21 +887,21 @@ trace_current_buffer_lock_reserve(int type, unsigned long len, | |||
887 | return trace_buffer_lock_reserve(&global_trace, | 887 | return trace_buffer_lock_reserve(&global_trace, |
888 | type, len, flags, pc); | 888 | type, len, flags, pc); |
889 | } | 889 | } |
890 | EXPORT_SYMBOL(trace_current_buffer_lock_reserve); | 890 | EXPORT_SYMBOL_GPL(trace_current_buffer_lock_reserve); |
891 | 891 | ||
892 | void trace_current_buffer_unlock_commit(struct ring_buffer_event *event, | 892 | void trace_current_buffer_unlock_commit(struct ring_buffer_event *event, |
893 | unsigned long flags, int pc) | 893 | unsigned long flags, int pc) |
894 | { | 894 | { |
895 | __trace_buffer_unlock_commit(&global_trace, event, flags, pc, 1); | 895 | __trace_buffer_unlock_commit(&global_trace, event, flags, pc, 1); |
896 | } | 896 | } |
897 | EXPORT_SYMBOL(trace_current_buffer_unlock_commit); | 897 | EXPORT_SYMBOL_GPL(trace_current_buffer_unlock_commit); |
898 | 898 | ||
899 | void trace_nowake_buffer_unlock_commit(struct ring_buffer_event *event, | 899 | void trace_nowake_buffer_unlock_commit(struct ring_buffer_event *event, |
900 | unsigned long flags, int pc) | 900 | unsigned long flags, int pc) |
901 | { | 901 | { |
902 | __trace_buffer_unlock_commit(&global_trace, event, flags, pc, 0); | 902 | __trace_buffer_unlock_commit(&global_trace, event, flags, pc, 0); |
903 | } | 903 | } |
904 | EXPORT_SYMBOL(trace_nowake_buffer_unlock_commit); | 904 | EXPORT_SYMBOL_GPL(trace_nowake_buffer_unlock_commit); |
905 | 905 | ||
906 | void trace_current_buffer_discard_commit(struct ring_buffer_event *event) | 906 | void trace_current_buffer_discard_commit(struct ring_buffer_event *event) |
907 | { | 907 | { |