Skip to content

Commit

Permalink
cred: Replace deprecated spinlock initialization
Browse files Browse the repository at this point in the history
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
KAGA-KOKO committed Jan 27, 2011
1 parent 92578c0 commit 10389a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cred.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static struct kmem_cache *cred_jar;
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

Expand Down

0 comments on commit 10389a1

Please sign in to comment.