All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] make net/ipv4/inet_timewait_sock.c:__inet_twsk_kill() static
Date: Fri, 13 Jul 2007 01:55:56 +0200	[thread overview]
Message-ID: <20070712235556.GU3492@stusta.de> (raw)

This patch makes the needlessly global __inet_twsk_kill() static.

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

---

 include/net/inet_timewait_sock.h |    3 ---
 net/ipv4/inet_timewait_sock.c    |    5 ++---
 2 files changed, 2 insertions(+), 6 deletions(-)

--- linux-2.6.22-rc6-mm1/include/net/inet_timewait_sock.h.old	2007-07-11 21:46:33.000000000 +0200
+++ linux-2.6.22-rc6-mm1/include/net/inet_timewait_sock.h	2007-07-11 21:46:49.000000000 +0200
@@ -209,9 +209,6 @@
 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);
--- linux-2.6.22-rc6-mm1/net/ipv4/inet_timewait_sock.c.old	2007-07-11 21:45:57.000000000 +0200
+++ linux-2.6.22-rc6-mm1/net/ipv4/inet_timewait_sock.c	2007-07-11 21:46:20.000000000 +0200
@@ -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 @@
 	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


             reply	other threads:[~2007-07-12 23:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12 23:55 Adrian Bunk [this message]
2007-07-15  2:01 ` [2.6 patch] make net/ipv4/inet_timewait_sock.c:__inet_twsk_kill() static David 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=20070712235556.GU3492@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.