Skip to contentSkip to conversation

net/netrom/: make some code static

PATCH Applied Adrian Bunk 2 participants 2 messages Dec 15, 2004 – Dec 28, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/netrom/: make some code static

The patch below makes some needlessly global code static.

diffstat output:

 net/netrom/af_netrom.c |    2 +-
 net/netrom/nr_route.c  |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
net/netrom/af_netrom.c renamed from net/netrom/af_netrom.c.old +1 -1
@@ -43,7 +43,7 @@
 #include <net/arp.h>
 #include <linux/init.h>
 
-int nr_ndevs = 4;
+static int nr_ndevs = 4;
 
 int sysctl_netrom_default_path_quality            = NR_DEFAULT_QUAL;
 int sysctl_netrom_obsolescence_count_initialiser  = NR_DEFAULT_OBS;
net/netrom/nr_route.c renamed from net/netrom/nr_route.c.old +3 -2
@@ -45,7 +45,7 @@
 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)
+static struct nr_node *nr_node_get(ax25_address *callsign)
 {
 	struct nr_node *found = NULL;
 	struct nr_node *nr_node;
@@ -62,7 +62,8 @@
 	return found;
 }
 
-struct nr_neigh *nr_neigh_get_dev(ax25_address *callsign, struct net_device *dev)
+static struct nr_neigh *nr_neigh_get_dev(ax25_address *callsign,
+					 struct net_device *dev)
 {
 	struct nr_neigh *found = NULL;
 	struct nr_neigh *nr_neigh;
maintainer Applied
#1 lore raw
Quoted 1 line · On Wed, 15 Dec 2004 02:21:07 +0100 Adrian Bunk <[email protected]> wrote:

The patch below makes some needlessly global code static.

Applied, thanks Adrian.