sunrpc: use DEFINE_SPINLOCK()
authorFabian Frederick <fabf@skynet.be>
Sun, 4 Dec 2016 12:45:28 +0000 (13:45 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 Dec 2016 19:18:30 +0000 (14:18 -0500)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcauth.c

index 69841db..e112da8 100644 (file)
@@ -124,8 +124,7 @@ EXPORT_SYMBOL_GPL(svc_auth_unregister);
 #define        DN_HASHMAX      (1<<DN_HASHBITS)
 
 static struct hlist_head       auth_domain_table[DN_HASHMAX];
-static spinlock_t      auth_domain_lock =
-       __SPIN_LOCK_UNLOCKED(auth_domain_lock);
+static DEFINE_SPINLOCK(auth_domain_lock);
 
 void auth_domain_put(struct auth_domain *dom)
 {