diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2004-04-27 22:26:48 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-04-27 22:26:48 -0700 |
| commit | 9397dee2ba39f298c428816fc611464cafeb3946 (patch) | |
| tree | a247f3f7f30cc7c96f7340a415838c59096b19cd | |
| parent | 0cc4d622060662632d97ab1dd9f040affff8bccd (diff) | |
[IPV4]: Use static in several places.
More functions and data that should be static.
| -rw-r--r-- | net/ipv4/devinet.c | 2 | ||||
| -rw-r--r-- | net/ipv4/tcp.c | 5 | ||||
| -rw-r--r-- | net/ipv4/tcp_input.c | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index db01196a9057..c9cd619cf43e 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -998,7 +998,7 @@ out: return NOTIFY_DONE; } -struct notifier_block ip_netdev_notifier = { +static struct notifier_block ip_netdev_notifier = { .notifier_call =inetdev_event, }; diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index aeeaf7793c44..f5d991b3705d 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -753,9 +753,6 @@ do_interrupted: 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 @@ static int tcp_error(struct sock *sk, int flags, int err) 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 --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 4243021789c1..6e62a01b15f3 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -1059,7 +1059,7 @@ void tcp_enter_frto(struct sock *sk) * 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; |
