diff options
author | Fabian Frederick | 2016-12-04 13:45:28 +0100 |
---|---|---|
committer | J. Bruce Fields | 2016-12-06 14:18:30 -0500 |
commit | 3eb15f2828464791f68b341ce87183012c509fc6 (patch) | |
tree | 6532e24ce50398fd1b79a65e12e645bef5e9610a /net/sunrpc | |
parent | fafedf81700d7d694b3716a14bc55bf4227344c7 (diff) |
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')
-rw-r--r-- | net/sunrpc/svcauth.c | 3 |
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) { |