Commit 9397dee2 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[IPV4]: Use static in several places.

More functions and data that should be static.
parent 0cc4d622
...@@ -998,7 +998,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event, ...@@ -998,7 +998,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event,
return NOTIFY_DONE; return NOTIFY_DONE;
} }
struct notifier_block ip_netdev_notifier = { static struct notifier_block ip_netdev_notifier = {
.notifier_call =inetdev_event, .notifier_call =inetdev_event,
}; };
......
...@@ -753,9 +753,6 @@ static int wait_for_tcp_memory(struct sock *sk, long *timeo) ...@@ -753,9 +753,6 @@ static int wait_for_tcp_memory(struct sock *sk, long *timeo)
goto out; 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, static inline int can_coalesce(struct sk_buff *skb, int i, struct page *page,
int off) int off)
{ {
...@@ -836,7 +833,7 @@ static int tcp_error(struct sock *sk, int flags, int err) ...@@ -836,7 +833,7 @@ static int tcp_error(struct sock *sk, int flags, int err)
return 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) size_t psize, int flags)
{ {
struct tcp_opt *tp = tcp_sk(sk); struct tcp_opt *tp = tcp_sk(sk);
......
...@@ -1059,7 +1059,7 @@ void tcp_enter_frto(struct sock *sk) ...@@ -1059,7 +1059,7 @@ void tcp_enter_frto(struct sock *sk)
* which indicates that we should follow the traditional RTO recovery, * which indicates that we should follow the traditional RTO recovery,
* i.e. mark everything lost and do go-back-N retransmission. * 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 tcp_opt *tp = tcp_sk(sk);
struct sk_buff *skb; struct sk_buff *skb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment