From: Hannes Eder Date: Tue, 10 Feb 2009 18:44:45 +0000 (+0100) Subject: tracing: fix sparse warning: attribute function with __acquires/__releases X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e7669b8e329255bbcb40af65b38e342825d97a46;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index e2434990277..95f99a7abf2 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;