netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] net/ipv6/sit.c: make 2 functions static
@ 2006-11-17 17:02 Adrian Bunk
  2006-11-21  0:56 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-11-17 17:02 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-kernel

This patch makes two needlessly global functions static.

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

---

 include/net/ipip.h |    4 ----
 net/ipv6/sit.c     |    4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)

--- linux-2.6.19-rc5-mm2/include/net/ipip.h.old	2006-11-17 16:58:59.000000000 +0100
+++ linux-2.6.19-rc5-mm2/include/net/ipip.h	2006-11-17 16:59:06.000000000 +0100
@@ -44,8 +44,4 @@
 	}								\
 } while (0)
 
-
-extern int	sit_init(void);
-extern void	sit_cleanup(void);
-
 #endif
--- linux-2.6.19-rc5-mm2/net/ipv6/sit.c.old	2006-11-17 16:37:49.000000000 +0100
+++ linux-2.6.19-rc5-mm2/net/ipv6/sit.c	2006-11-17 16:38:53.000000000 +0100
@@ -809,7 +809,7 @@
 	}
 }
 
-void __exit sit_cleanup(void)
+static void __exit sit_cleanup(void)
 {
 	inet_del_protocol(&sit_protocol, IPPROTO_IPV6);
 
@@ -819,7 +819,7 @@
 	rtnl_unlock();
 }
 
-int __init sit_init(void)
+static int __init sit_init(void)
 {
 	int err;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-21  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17 17:02 [2.6 patch] net/ipv6/sit.c: make 2 functions static Adrian Bunk
2006-11-21  0:56 ` David Miller

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