]> err.no Git - linux-2.6/commitdiff
[INET_SOCK]: make net/ipv4/inet_timewait_sock.c:__inet_twsk_kill() static
authorAdrian Bunk <bunk@stusta.de>
Sun, 15 Jul 2007 02:00:59 +0000 (19:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Jul 2007 02:00:59 +0000 (19:00 -0700)
This patch makes the needlessly global __inet_twsk_kill() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_timewait_sock.h
net/ipv4/inet_timewait_sock.c

index 09a2532699b236c0eb7f2af11ba5da7b6c93a709..47d52b2414dbac4b1c5a294c46483e9db36901ef 100644 (file)
@@ -209,9 +209,6 @@ static inline void inet_twsk_put(struct inet_timewait_sock *tw)
 extern struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk,
                                                  const int state);
 
-extern void __inet_twsk_kill(struct inet_timewait_sock *tw,
-                            struct inet_hashinfo *hashinfo);
-
 extern void __inet_twsk_hashdance(struct inet_timewait_sock *tw,
                                  struct sock *sk,
                                  struct inet_hashinfo *hashinfo);
index a73cf93cee36d146eb4cfd2171a76a949d8d374a..2586df09b9b6cac0bfe2c5679e02d35038d8449e 100644 (file)
@@ -14,7 +14,8 @@
 #include <net/ip.h>
 
 /* Must be called with locally disabled BHs. */
-void __inet_twsk_kill(struct inet_timewait_sock *tw, struct inet_hashinfo *hashinfo)
+static void __inet_twsk_kill(struct inet_timewait_sock *tw,
+                            struct inet_hashinfo *hashinfo)
 {
        struct inet_bind_hashbucket *bhead;
        struct inet_bind_bucket *tb;
@@ -47,8 +48,6 @@ void __inet_twsk_kill(struct inet_timewait_sock *tw, struct inet_hashinfo *hashi
        inet_twsk_put(tw);
 }
 
-EXPORT_SYMBOL_GPL(__inet_twsk_kill);
-
 /*
  * Enter the time wait state. This is called with locally disabled BH.
  * Essentially we whip up a timewait bucket, copy the relevant info into it