]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 69841db1f5335a29b27db08ce701f049e28ed2ea..e112da8005b5c8f8f70a94124705b6c8c941c555 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)
 {