From: Jiri Slaby Date: Thu, 22 Nov 2007 11:40:22 +0000 (+0800) Subject: [SUNRPC]: Remove SPIN_LOCK_UNLOCKED X-Git-Tag: v2.6.24-rc4~90^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ba03e82b3dac41bb1c5ca29060aa44b5e44b486;p=linux-2.6 [SUNRPC]: Remove SPIN_LOCK_UNLOCKED SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Herbert Xu --- diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 282a9a2ec9..cd641c8634 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -62,7 +62,7 @@ static inline void do_xprt_reserve(struct rpc_task *); static void xprt_connect_status(struct rpc_task *task); static int __xprt_get_cong(struct rpc_xprt *, struct rpc_task *); -static spinlock_t xprt_list_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(xprt_list_lock); static LIST_HEAD(xprt_list); /*