aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-10 13:44:45 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-11 04:15:42 -0500
commite7669b8e329255bbcb40af65b38e342825d97a46 (patch)
tree2abe83b7fc90a458c75db0f852c36aa757850673 /kernel/trace/trace.c
parent5e39841c45cf5e6ea930ede1b0303309e03037a2 (diff)
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>
Diffstat (limited to 'kernel/trace/trace.c')
-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)
459 * Register a new plugin tracer. 459 * Register a new plugin tracer.
460 */ 460 */
461int register_tracer(struct tracer *type) 461int register_tracer(struct tracer *type)
462__releases(kernel_lock)
463__acquires(kernel_lock)
462{ 464{
463 struct tracer *t; 465 struct tracer *t;
464 int len; 466 int len;