Commit e7669b8e authored by Hannes Eder's avatar Hannes Eder Committed by Ingo Molnar

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: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5e39841c
...@@ -459,6 +459,8 @@ update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu) ...@@ -459,6 +459,8 @@ update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu)
* Register a new plugin tracer. * Register a new plugin tracer.
*/ */
int register_tracer(struct tracer *type) int register_tracer(struct tracer *type)
__releases(kernel_lock)
__acquires(kernel_lock)
{ {
struct tracer *t; struct tracer *t;
int len; int len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment