From: Thomas Gleixner Date: Sun, 23 Jan 2011 14:24:55 +0000 (+0100) Subject: kthread: Replace deprecated spinlock initialization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=92578c0b8078f6919f9b47e7e16a1cf770bd127b;p=mv-sheeva.git kthread: Replace deprecated spinlock initialization SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant instead. Signed-off-by: Thomas Gleixner --- 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), \ }