new compile problem on linux-2.4.27-pre4 and his solution

From: Sérgio (sergiomb_at_netcabo.pt)
Date: 05/31/04

  • Next message: Sam Ravnborg: "Re: Delete cris architecture?"
    To: linux-kernel@vger.kernel.org
    Date:	Mon, 31 May 2004 19:12:00 +0100
    
    

    Hi this happens on pre4 and not happen on pre3

    tcp_input.c: In function `tcp_rcv_space_adjust':
    tcp_input.c:479: structure has no member named `sk_rcvbuf'
    tcp_input.c:480: structure has no member named `sk_rcvbuf'
    make[3]: *** [tcp_input.o] Error 1
    make bzImage error !

    find . -exec grep "sk_rcvbuf" {} \; -print
    results:
    #define sk_rcvbuf rcvbuf
    ./include/net/sctp/compat.h
            newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
    ./net/sctp/socket.c
            if (sk->sk_rcvbuf < SCTP_DEFAULT_MINWINDOW)
                    asoc->rwnd = sk->sk_rcvbuf;
                         min_t(__u32, (asoc->base.sk->sk_rcvbuf >> 1),
    asoc->pmtu)))
    ./net/sctp/associola.c
                            if (space > sk->sk_rcvbuf)
                                    sk->sk_rcvbuf = space;
    ./net/ipv4/tcp_input.c

    So #define sk_rcvbuf rcvbuf
    and I feel free to do this and resolve the compile problem.
    --- linux-2.4.27-pre4/net/ipv4/tcp_input.c.orig 2004-05-31 18:45:06.000000000 +0100
    +++ linux-2.4.27-pre4/net/ipv4/tcp_input.c 2004-05-31 18:54:11.000000000 +0100
    @@ -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;
                    }
            }

    thanks,
    Sergio M. B.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Sam Ravnborg: "Re: Delete cris architecture?"

    Relevant Pages