diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-01-23 17:24:55 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-01-27 14:30:37 +0300 |
commit | 92578c0b8078f6919f9b47e7e16a1cf770bd127b (patch) | |
tree | 1bf78aee66660797520f0d12c3e5e0ce6898616f /include/linux/kthread.h | |
parent | 235454c99851ba21038061b9acf38d1a636068c5 (diff) | |
download | linux-92578c0b8078f6919f9b47e7e16a1cf770bd127b.tar.xz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kthread.h b/include/linux/kthread.h index ce0775aa64c3..7ff16f7d3ed4 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), \ } |