Commit 10389a15 authored by Thomas Gleixner's avatar Thomas Gleixner

cred: Replace deprecated spinlock initialization

SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 92578c0b
...@@ -35,7 +35,7 @@ static struct kmem_cache *cred_jar; ...@@ -35,7 +35,7 @@ static struct kmem_cache *cred_jar;
static struct thread_group_cred init_tgcred = { static struct thread_group_cred init_tgcred = {
.usage = ATOMIC_INIT(2), .usage = ATOMIC_INIT(2),
.tgid = 0, .tgid = 0,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(init_cred.tgcred.lock),
}; };
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment