summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2016-12-04 13:45:28 +0100
committerJ. Bruce Fields <bfields@redhat.com>2016-12-06 14:18:30 -0500
commit3eb15f2828464791f68b341ce87183012c509fc6 (patch)
tree6532e24ce50398fd1b79a65e12e645bef5e9610a
parentfafedf81700d7d694b3716a14bc55bf4227344c7 (diff)
downloadlinux-3eb15f2828464791f68b341ce87183012c509fc6.tar.bz2
sunrpc: use DEFINE_SPINLOCK()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--net/sunrpc/svcauth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c
index 69841db1f533..e112da8005b5 100644
--- a/net/sunrpc/svcauth.c
+++ b/net/sunrpc/svcauth.c
@@ -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)
{