netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv4 use static in several places (trivial)
@ 2004-04-28 18:16 Stephen Hemminger
  2004-04-28 19:26 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-04-28 18:16 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

More functions and data that should be static.

diff -Nru a/net/ipv4/devinet.c b/net/ipv4/devinet.c
--- a/net/ipv4/devinet.c	Wed Apr 28 10:49:55 2004
+++ b/net/ipv4/devinet.c	Wed Apr 28 10:49:55 2004
@@ -998,7 +998,7 @@
 	return NOTIFY_DONE;
 }
 
-struct notifier_block ip_netdev_notifier = {
+static struct notifier_block ip_netdev_notifier = {
 	.notifier_call =inetdev_event,
 };
 
diff -Nru a/net/ipv4/tcp.c b/net/ipv4/tcp.c
--- a/net/ipv4/tcp.c	Wed Apr 28 10:49:55 2004
+++ b/net/ipv4/tcp.c	Wed Apr 28 10:49:55 2004
@@ -753,9 +753,6 @@
 	goto out;
 }
 
-ssize_t do_tcp_sendpages(struct sock *sk, struct page **pages, int poffset,
-			 size_t psize, int flags);
-
 static inline int can_coalesce(struct sk_buff *skb, int i, struct page *page,
 			       int off)
 {
@@ -836,7 +833,7 @@
 	return err;
 }
 
-ssize_t do_tcp_sendpages(struct sock *sk, struct page **pages, int poffset,
+static ssize_t do_tcp_sendpages(struct sock *sk, struct page **pages, int poffset,
 			 size_t psize, int flags)
 {
 	struct tcp_opt *tp = tcp_sk(sk);
diff -Nru a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
--- a/net/ipv4/tcp_input.c	Wed Apr 28 10:49:55 2004
+++ b/net/ipv4/tcp_input.c	Wed Apr 28 10:49:55 2004
@@ -1062,7 +1062,7 @@
  * which indicates that we should follow the traditional RTO recovery,
  * i.e. mark everything lost and do go-back-N retransmission.
  */
-void tcp_enter_frto_loss(struct sock *sk)
+static void tcp_enter_frto_loss(struct sock *sk)
 {
 	struct tcp_opt *tp = tcp_sk(sk);
 	struct sk_buff *skb;

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

* Re: [PATCH] ipv4 use static in several places (trivial)
  2004-04-28 18:16 [PATCH] ipv4 use static in several places (trivial) Stephen Hemminger
@ 2004-04-28 19:26 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-04-28 19:26 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On Wed, 28 Apr 2004 11:16:41 -0700
Stephen Hemminger <shemminger@osdl.org> wrote:

> More functions and data that should be static.

Applied, thanks Stephen.

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

end of thread, other threads:[~2004-04-28 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-28 18:16 [PATCH] ipv4 use static in several places (trivial) Stephen Hemminger
2004-04-28 19:26 ` David S. 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).