netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: ralf@linux-mips.org
Cc: linux-hams@vger.kernel.org, netdev@oss.sgi.com,
	linux-kernel@vger.kernel.org
Subject: [2.6 patch] net/netrom/: make some code static
Date: Wed, 15 Dec 2004 02:21:07 +0100	[thread overview]
Message-ID: <20041215012107.GE12937@stusta.de> (raw)

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(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc3-mm1-full/net/netrom/af_netrom.c.old	2004-12-14 21:45:43.000000000 +0100
+++ linux-2.6.10-rc3-mm1-full/net/netrom/af_netrom.c	2004-12-14 21:45:51.000000000 +0100
@@ -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;
--- linux-2.6.10-rc3-mm1-full/net/netrom/nr_route.c.old	2004-12-14 21:46:05.000000000 +0100
+++ linux-2.6.10-rc3-mm1-full/net/netrom/nr_route.c	2004-12-14 21:46:40.000000000 +0100
@@ -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;

             reply	other threads:[~2004-12-15  1:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15  1:21 Adrian Bunk [this message]
2004-12-28  5:15 ` [2.6 patch] net/netrom/: make some code static David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041215012107.GE12937@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-hams@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).