X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fax25%2Faf_ax25.c;h=974d029f46e2d87513a0fdc0dc6a94fc6be2684b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2ff9b6f5ca3532a77a388c64abf791b8459c2a13;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 2ff9b6f5c..974d029f4 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -52,7 +52,7 @@ HLIST_HEAD(ax25_list); -spinlock_t ax25_list_lock = SPIN_LOCK_UNLOCKED; +DEFINE_SPINLOCK(ax25_list_lock); static struct proto_ops ax25_proto_ops; @@ -763,7 +763,7 @@ out: return res; } -int ax25_create(struct socket *sock, int protocol) +static int ax25_create(struct socket *sock, int protocol) { struct sock *sk; ax25_cb *ax25;