projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
235454c
)
kthread: Replace deprecated spinlock initialization
author
Thomas Gleixner
<tglx@linutronix.de>
Sun, 23 Jan 2011 14:24:55 +0000
(15:24 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 27 Jan 2011 11:30:37 +0000
(12:30 +0100)
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/kthread.h
patch
|
blob
|
history
diff --git
a/include/linux/kthread.h
b/include/linux/kthread.h
index ce0775aa64c376b8980a6af70ef59f14d19f1ba0..7ff16f7d3ed41530a9c67cdaa2bc5bbf2c609f87 100644
(file)
--- a/
include/linux/kthread.h
+++ b/
include/linux/kthread.h
@@
-64,7
+64,7
@@
struct kthread_work {
};
#define KTHREAD_WORKER_INIT(worker) { \
- .lock =
SPIN_LOCK_UNLOCKED,
\
+ .lock =
__SPIN_LOCK_UNLOCKED((worker).lock),
\
.work_list = LIST_HEAD_INIT((worker).work_list), \
}