Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cred: Replace deprecated spinlock initialization

SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

+1 -1
+1 -1
kernel/cred.c
··· 35 35 static struct thread_group_cred init_tgcred = { 36 36 .usage = ATOMIC_INIT(2), 37 37 .tgid = 0, 38 - .lock = SPIN_LOCK_UNLOCKED, 38 + .lock = __SPIN_LOCK_UNLOCKED(init_cred.tgcred.lock), 39 39 }; 40 40 #endif 41 41