diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-10 19:44:45 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-11 10:15:42 +0100 |
commit | e7669b8e329255bbcb40af65b38e342825d97a46 (patch) | |
tree | 2abe83b7fc90a458c75db0f852c36aa757850673 | |
parent | 5e39841c45cf5e6ea930ede1b0303309e03037a2 (diff) | |
download | op-kernel-dev-e7669b8e329255bbcb40af65b38e342825d97a46.zip op-kernel-dev-e7669b8e329255bbcb40af65b38e342825d97a46.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index e243499..95f99a7 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; |