summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-10 21:44:45 +0300
committerIngo Molnar <mingo@elte.hu>2009-02-11 12:15:42 +0300
commite7669b8e329255bbcb40af65b38e342825d97a46 (patch)
tree2abe83b7fc90a458c75db0f852c36aa757850673
parent5e39841c45cf5e6ea930ede1b0303309e03037a2 (diff)
downloadlinux-e7669b8e329255bbcb40af65b38e342825d97a46.tar.xz
tracing: fix sparse warning: attribute function with __acquires/__releases
Fix this sparse warning: kernel/trace/trace.c:458:9: warning: context imbalance in 'register_tracer' - unexpected unlock Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/trace/trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index e2434990277c..95f99a7abf2f 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -459,6 +459,8 @@ update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu)
* Register a new plugin tracer.
*/
int register_tracer(struct tracer *type)
+__releases(kernel_lock)
+__acquires(kernel_lock)
{
struct tracer *t;
int len;