| To: | mikpe@xxxxxxxxx, marcelo.tosatti@xxxxxxxxxxxx, davem@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH][2.4.27-pre4] tcp_input.c compile-time error |
| From: | Martin MOKREJŠ <mmokrejs@xxxxxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 31 May 2004 10:47:46 +0200 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040311 |
This patch has helped to me to compile teh kernel at least. Thanks.
net/ipv4/tcp_input.c in 2.4.27-pre4 fails to compile:
tcp_input.c: In function `tcp_rcv_space_adjust':
tcp_input.c:479: error: structure has no member named `sk_rcvbuf'
tcp_input.c:480: error: structure has no member named `sk_rcvbuf'
make[3]: *** [tcp_input.o] Error 1
The patch below appears to fix this problem, although some netdev
person should probably check it.
/Mikael
diff -ruN linux-2.4.27-pre4/net/ipv4/tcp_input.c
linux-2.4.27-pre4.tcp_input-fix/net/ipv4/tcp_input.c
--- linux-2.4.27-pre4/net/ipv4/tcp_input.c 2004-05-30 23:18:16.000000000
+0200
+++ linux-2.4.27-pre4.tcp_input-fix/net/ipv4/tcp_input.c 2004-05-30
23:45:52.000000000 +0200
@@ -476,8 +476,8 @@
16 + sizeof(struct sk_buff));
space *= rcvmem;
space = min(space, sysctl_tcp_rmem[2]);
- if (space > sk->sk_rcvbuf)
- sk->sk_rcvbuf = space;
+ if (space > sk->rcvbuf)
+ sk->rcvbuf = space;
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] Re: Gigabit Kconfig problems with yesterday's update, Christoph Hellwig |
|---|---|
| Next by Date: | [PATCH] farsync needs <asm/io.h>, Christoph Hellwig |
| Previous by Thread: | [PATCH][2.4.27-pre4] tcp_input.c compile-time error, Mikael Pettersson |
| Next by Thread: | [PATCH 4/17 linux-2.6.7-rc2] prism54: Add iwspy support, Margit Schubert-While |
| Indexes: | [Date] [Thread] [Top] [All Lists] |