]> git.hungrycats.org Git - linux/commitdiff
[NETROM]: Make lists and locks static since they are only used in one file.
authorStephen Hemminger <shemminger@osdl.org>
Thu, 14 Aug 2003 14:13:55 +0000 (07:13 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 14 Aug 2003 14:13:55 +0000 (07:13 -0700)
net/netrom/af_netrom.c
net/netrom/nr_route.c

index fe050f1bd7e9aa3e9805f9d4d3d67b13878fbe6e..3467299a550cfb81c5b32aefccc6963d30fae485 100644 (file)
@@ -57,8 +57,8 @@ int sysctl_netrom_link_fails_count                = NR_DEFAULT_FAILS;
 
 static unsigned short circuit = 0x101;
 
-HLIST_HEAD(nr_list);
-static spinlock_t nr_list_lock;
+static HLIST_HEAD(nr_list);
+static spinlock_t nr_list_lock = SPIN_LOCK_UNLOCKED;
 
 static struct proto_ops nr_proto_ops;
 
index e4067c8fc33580eb6df4d7e90fda2a1ba96d1128..483a7c583bd88681571ab58e4ffa74a78c268e3f 100644 (file)
 
 static unsigned int nr_neigh_no = 1;
 
-HLIST_HEAD(nr_node_list);
-spinlock_t nr_node_list_lock = SPIN_LOCK_UNLOCKED;
-HLIST_HEAD(nr_neigh_list);
-spinlock_t nr_neigh_list_lock = SPIN_LOCK_UNLOCKED;
+static HLIST_HEAD(nr_node_list);
+static spinlock_t nr_node_list_lock = SPIN_LOCK_UNLOCKED;
+static HLIST_HEAD(nr_neigh_list);
+static spinlock_t nr_neigh_list_lock = SPIN_LOCK_UNLOCKED;
 
 struct nr_node *nr_node_get(ax25_address *callsign)
 {