2002-03-18 22:16:56

by Witold Krecicki

[permalink] [raw]
Subject: [2.5.7] compilation problem

make[3]: Entering `/home/users/adasi/rpm/BUILD/linux-2.5.7/net/core'
egcs -D__KERNEL__ -I/home/users/adasi/rpm/BUILD/linux-2.5.7/include -Wall -W
strict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasi
ng -fno-common -pipe -march=i686 -DKBUILD_BASENAME=dev -c -o dev.o dev.c
dev.c: In function `netif_receive_skb':
dev.c:1465: void value not ignored as it ought to be

Part of .config:
<cite>
#
# Networking options
#
CONFIG_PACKET=m
CONFIG_PACKET_MMAP=y
CONFIG_NETLINK_DEV=y
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_FILTER=y
CONFIG_UNIX=m
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_FWMARK=y
CONFIG_IP_ROUTE_NAT=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_ROUTE_LARGE_TABLES=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_IP_MROUTE=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y
</cite>

How to fix it?
--
Witek Krecicki
[email protected]


2002-03-19 00:01:21

by Roberto Nibali

[permalink] [raw]
Subject: Re: [2.5.7] compilation problem

Hi,

Witek Kr?cicki wrote:
> make[3]: Entering `/home/users/adasi/rpm/BUILD/linux-2.5.7/net/core'
> egcs -D__KERNEL__ -I/home/users/adasi/rpm/BUILD/linux-2.5.7/include -Wall -W
> strict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasi
> ng -fno-common -pipe -march=i686 -DKBUILD_BASENAME=dev -c -o dev.o dev.c
> dev.c: In function `netif_receive_skb':
> dev.c:1465: void value not ignored as it ought to be
> Part of .config:
> <cite>
> #
> # Networking options
> #
> CONFIG_PACKET=m

[removed unimportant part]

> CONFIG_IP_PIMSM_V2=y
> # CONFIG_ARPD is not set
> # CONFIG_INET_ECN is not set
> CONFIG_SYN_COOKIES=y

You forgot to post the important rest: CONFIG_NET_DIVERT=y

> How to fix it?

--- linux-2.5.7/net/core/dev.c Mon Mar 18 23:17:40 2002
+++ /usr/src/linux-2.5.7/net/core/dev.c Tue Mar 19 00:53:10 2002
@@ -1462,7 +1462,7 @@

#ifdef CONFIG_NET_DIVERT
if (skb->dev->divert && skb->dev->divert->divert)
-
ret = handle_diverter(skb);
+
handle_diverter(skb);
#endif /* CONFIG_NET_DIVERT */


#if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)


I don't know why this has been changed since it doesn't differ much from
the 2.4.x code in its invariant (CONFIG_NET_DIVERT) handling. Maybe
DaveM had a bad day ;)

Cheers,
Roberto Nibali, ratz

2002-03-19 07:49:33

by Hu Gang

[permalink] [raw]
Subject: Re: [2.5.7] compilation problem

On Tue, 19 Mar 2002 01:00:50 +0100
Roberto Nibali <[email protected]> wrote:

> Hi,
>
> > make[3]: Entering `/home/users/adasi/rpm/BUILD/linux-2.5.7/net/core'
> > egcs -D__KERNEL__ -I/home/users/adasi/rpm/BUILD/linux-2.5.7/include -Wall -W
> > strict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasi
> > ng -fno-common -pipe -march=i686 -DKBUILD_BASENAME=dev -c -o dev.o dev.c
> > dev.c: In function `netif_receive_skb':
> > dev.c:1465: void value not ignored as it ought to be
> > Part of .config:
> > <cite>
> > #
> > # Networking options
> > #
> > CONFIG_PACKET=m
>
> [removed unimportant part]
>
> > CONFIG_IP_PIMSM_V2=y
> > # CONFIG_ARPD is not set
> > # CONFIG_INET_ECN is not set
> > CONFIG_SYN_COOKIES=y
>
> You forgot to post the important rest: CONFIG_NET_DIVERT=y
>
> > How to fix it?
>
> --- linux-2.5.7/net/core/dev.c Mon Mar 18 23:17:40 2002
> +++ /usr/src/linux-2.5.7/net/core/dev.c Tue Mar 19 00:53:10 2002
> @@ -1462,7 +1462,7 @@
>
> #ifdef CONFIG_NET_DIVERT
> if (skb->dev->divert && skb->dev->divert->divert)
> -
> ret = handle_diverter(skb);
> +
> handle_diverter(skb);
> #endif /* CONFIG_NET_DIVERT */
>
>
> #if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)
>
>
> I don't know why this has been changed since it doesn't differ much from
> the 2.4.x code in its invariant (CONFIG_NET_DIVERT) handling. Maybe
> DaveM had a bad day ;)
>
> Cheers,
> Roberto Nibali, ratz
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

Today I download the latest patch, And I patch it into the 2.5.6 tree, But it do't have that problem.? I chech dev.c , that is right.
--
thanks with regards!
hugang.

***********************************
Beijing Soul Technology Co.,Ltd.
Tel:010-68425741/42/43/44
Fax:010-68425745
email:[email protected]
web:http://www.soul.com.cn
***********************************

2002-03-21 00:31:06

by Roberto Nibali

[permalink] [raw]
Subject: Re: [2.5.7] compilation problem

Hi,

> Today I download the latest patch, And I patch it into
> the 2.5.6 tree, But it do't have that problem.?
> I chech dev.c , that is right.

Funny, the patches (from 2.5.6 to 2.5.7 and from 2.5.7-pre2 to 2.5.7) I
downloaded from ftp.kernel.org do contain following patch:

laphish:/usr/src/patches # grep handle_diverter *
patch-2.5.7:-
handle_diverter(skb);
patch-2.5.7:+
ret = handle_diverter(skb);
patch-2.5.7-pre2:-
handle_diverter(skb);
patch-2.5.7-pre2:+
ret = handle_diverter(skb);
laphish:/usr/src/patches #

My patch reverts this but since you mention that for you it was correct
I wonder if we're really talking about the same patch so I just
downloaded them again and I can verify that the problem is really present:

ratz@laphish:~ > md5sum patch-2.5.7.*
f89d55b1e94fbd974d8b3f4625a86a2a patch-2.5.7.bz2
0f5dec319d693dfe6c528a76e10cd1d1 patch-2.5.7.gz
ratz@laphish:~ > bunzip2 patch-2.5.7.bz2
ratz@laphish:~ > grep handle_diverter patch-2.5.7
-
handle_diverter(skb);
+
ret = handle_diverter(skb);
ratz@laphish:~ > rm patch-2.5.7
ratz@laphish:~ > gunzip patch-2.5.7.gz
ratz@laphish:~ > grep handle_diverter patch-2.5.7
-
handle_diverter(skb);
+
ret = handle_diverter(skb);
ratz@laphish:~ > rm patch-2.5.7
ratz@laphish:~ >

Cheers,
Roberto Nibali, ratz