commit | 10389a15e25fd4784d42de7e0e3fc8c242f2011d | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Sun Jan 23 15:25:56 2011 +0100 |
committer | Thomas Gleixner <tglx@linutronix.de> | Thu Jan 27 12:30:37 2011 +0100 |
tree | b0c43d7b3cba407d64b91051e1ce2116a331212b | |
parent | 92578c0b8078f6919f9b47e7e16a1cf770bd127b [diff] [blame] |
cred: Replace deprecated spinlock initialization SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
diff --git a/kernel/cred.c b/kernel/cred.c index 6a1aa00..b5496e8 100644 --- a/kernel/cred.c +++ b/kernel/cred.c
@@ -35,7 +35,7 @@ static struct thread_group_cred init_tgcred = { .usage = ATOMIC_INIT(2), .tgid = 0, - .lock = SPIN_LOCK_UNLOCKED, + .lock = __SPIN_LOCK_UNLOCKED(init_cred.tgcred.lock), }; #endif