summaryrefslogtreecommitdiff
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r--net/sunrpc/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 001e03df0f3c..7176c6d37190 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -89,7 +89,7 @@ rpcauth_destroy(struct rpc_auth *auth)
kfree(auth);
}
-static spinlock_t rpc_credcache_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(rpc_credcache_lock);
/*
* Initialize RPC credential cache