]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
tcp_output: fix sparse warning for tcp_wfree
authorSilviu-Mihai Popescu <silviupopescu1990@gmail.com>
Sat, 4 Aug 2012 09:31:29 +0000 (09:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2012 20:29:56 +0000 (13:29 -0700)
Fix sparse warning:
* symbol 'tcp_wfree' was not declared. Should it be static?

Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c

index a7b3ec9b6c3ee33a9bc8730c45f8f3d85b034196..20dfd892c86f7128c7408833e57cfbe4ee39be88 100644 (file)
@@ -940,7 +940,7 @@ void __init tcp_tasklet_init(void)
  * We cant xmit new skbs from this context, as we might already
  * hold qdisc lock.
  */
-void tcp_wfree(struct sk_buff *skb)
+static void tcp_wfree(struct sk_buff *skb)
 {
        struct sock *sk = skb->sk;
        struct tcp_sock *tp = tcp_sk(sk);