summaryrefslogtreecommitdiffstats
path: root/include/linux/kthread.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-01-23 15:24:55 +0100
committerThomas Gleixner <tglx@linutronix.de>2011-01-27 12:30:37 +0100
commit92578c0b8078f6919f9b47e7e16a1cf770bd127b (patch)
tree1bf78aee66660797520f0d12c3e5e0ce6898616f /include/linux/kthread.h
parent235454c99851ba21038061b9acf38d1a636068c5 (diff)
kthread: Replace deprecated spinlock initialization
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/kthread.h')
-rw-r--r--include/linux/kthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kthread.h b/include/linux/kthread.h
index ce0775aa64c..7ff16f7d3ed 100644
--- 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), \
}