public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roberto Nibali <ratz@drugphish.ch>
To: "Witek Krêcicki" <adasi@kernel.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.5.7] compilation problem
Date: Tue, 19 Mar 2002 01:00:50 +0100	[thread overview]
Message-ID: <3C967FB2.1080706@drugphish.ch> (raw)
In-Reply-To: <006301c1ceca$87937c70$0201a8c0@WITEK>

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


  reply	other threads:[~2002-03-19  0:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-18 22:16 [2.5.7] compilation problem Witek Kręcicki
2002-03-19  0:00 ` Roberto Nibali [this message]
2002-03-19  7:48   ` hugang
2002-03-21  0:30     ` Roberto Nibali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C967FB2.1080706@drugphish.ch \
    --to=ratz@drugphish.ch \
    --cc=adasi@kernel.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox