summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcauth.c
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 /net/sunrpc/svcauth.c
parentfafedf81700d7d694b3716a14bc55bf4227344c7 (diff)
downloadtalos-op-linux-3eb15f2828464791f68b341ce87183012c509fc6.tar.gz
talos-op-linux-3eb15f2828464791f68b341ce87183012c509fc6.zip
sunrpc: use DEFINE_SPINLOCK()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcauth.c')
-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)
{
OpenPOWER on IntegriCloud