DORMANTno replies

[PATCH] (8/11) netrom - make lists and locks static

From: Stephen Hemminger <hidden>
Date: 2003-08-13 22:45:17
Also in: linux-hams

Make lists and locks static since they are only used in one file.


diff -Nru a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
--- a/net/netrom/af_netrom.c	Wed Aug 13 13:31:48 2003
+++ b/net/netrom/af_netrom.c	Wed Aug 13 13:31:48 2003
@@ -57,8 +57,8 @@
 
 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;
 
diff -Nru a/net/netrom/nr_route.c b/net/netrom/nr_route.c
--- a/net/netrom/nr_route.c	Wed Aug 13 13:31:48 2003
+++ b/net/netrom/nr_route.c	Wed Aug 13 13:31:48 2003
@@ -39,10 +39,10 @@
 
 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)
 {
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help