projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e39841
)
tracing: fix sparse warning: attribute function with __acquires/__releases
author
Hannes Eder
<hannes@hanneseder.net>
Tue, 10 Feb 2009 18:44:45 +0000
(19:44 +0100)
committer
Ingo 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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index e2434990277c5002c8639b6fc0db6ad3bf0981ed..95f99a7abf2f3449d940e5d7b60f3b5dc556c62c 100644
(file)
--- 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;