]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: make tcp_cleanup_rbuf private
authorDan Williams <dan.j.williams@intel.com>
Tue, 31 Dec 2013 01:12:07 +0000 (17:12 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 28 Sep 2014 14:22:21 +0000 (07:22 -0700)
net_dma was the only external user so this can become local to tcp.c
again.

Cc: James Morris <jmorris@namei.org>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/net/tcp.h
net/ipv4/tcp.c

index 2c2f24ffa3831b6e8cb71621921ede0b74f737c1..7ffbcbf90a6408449dc3b92c8f7dc4a984689663 100644 (file)
@@ -371,7 +371,6 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
 void tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
                         const struct tcphdr *th, unsigned int len);
 void tcp_rcv_space_adjust(struct sock *sk);
-void tcp_cleanup_rbuf(struct sock *sk, int copied);
 int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp);
 void tcp_twsk_destructor(struct sock *sk);
 ssize_t tcp_splice_read(struct socket *sk, loff_t *ppos,
index 28595a364f09382bfa0ce5c66f2f8fba11b7c519..4874a0efd34aa5b8f7e0b5c6dee0b64f962f649e 100644 (file)
@@ -1377,7 +1377,7 @@ static int tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len)
  * calculation of whether or not we must ACK for the sake of
  * a window update.
  */
-void tcp_cleanup_rbuf(struct sock *sk, int copied)
+static void tcp_cleanup_rbuf(struct sock *sk, int copied)
 {
        struct tcp_sock *tp = tcp_sk(sk);
        bool time_to_ack = false;