public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.5.7] compilation problem
@ 2002-03-18 22:16 Witek Kręcicki
  2002-03-19  0:00 ` Roberto Nibali
  0 siblings, 1 reply; 4+ messages in thread
From: Witek Kręcicki @ 2002-03-18 22:16 UTC (permalink / raw)
  To: linux-kernel

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
adasi@pld.org.pl


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.5.7] compilation problem
  2002-03-18 22:16 [2.5.7] compilation problem Witek Kręcicki
@ 2002-03-19  0:00 ` Roberto Nibali
  2002-03-19  7:48   ` hugang
  0 siblings, 1 reply; 4+ messages in thread
From: Roberto Nibali @ 2002-03-19  0:00 UTC (permalink / raw)
  To: Witek Krêcicki; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.5.7] compilation problem
  2002-03-19  0:00 ` Roberto Nibali
@ 2002-03-19  7:48   ` hugang
  2002-03-21  0:30     ` Roberto Nibali
  0 siblings, 1 reply; 4+ messages in thread
From: hugang @ 2002-03-19  7:48 UTC (permalink / raw)
  To: Roberto Nibali; +Cc: adasi, linux-kernel

On Tue, 19 Mar 2002 01:00:50 +0100
Roberto Nibali <ratz@drugphish.ch> 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 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/

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:gang_hu@soul.com.cn
web:http://www.soul.com.cn
***********************************

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.5.7] compilation problem
  2002-03-19  7:48   ` hugang
@ 2002-03-21  0:30     ` Roberto Nibali
  0 siblings, 0 replies; 4+ messages in thread
From: Roberto Nibali @ 2002-03-21  0:30 UTC (permalink / raw)
  To: hugang; +Cc: adasi, linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-21  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-18 22:16 [2.5.7] compilation problem Witek Kręcicki
2002-03-19  0:00 ` Roberto Nibali
2002-03-19  7:48   ` hugang
2002-03-21  0:30     ` Roberto Nibali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox