vserver 1.9.5.x5
[linux-2.6.git] / net / ax25 / af_ax25.c
index 2ff9b6f..974d029 100644 (file)
@@ -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;