tracing: fix sparse warning: attribute function with __acquires/__releases
authorHannes Eder <hannes@hanneseder.net>
Tue, 10 Feb 2009 18:44:45 +0000 (19:44 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 09:15:42 +0000 (10:15 +0100)
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>
kernel/trace/trace.c

index e2434990277c5002c8639b6fc0db6ad3bf0981ed..95f99a7abf2f3449d940e5d7b60f3b5dc556c62c 100644 (file)
@@ -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;