mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Soewono Effendi <SEffendi@sysgo.de>
To: linux-kernel mlist <linux-kernel@vger.kernel.org>
Subject: [PATCH] error compiling v2.5.45 using xtreme minimal .config
Date: Mon, 4 Nov 2002 15:54:50 +0100	[thread overview]
Message-ID: <20021104155450.2d0ddf6b.SEffendi@sysgo.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

Hi all,


this patch fixes the problem described in my earlier email.
kernel-v2.5.45 failed to build if configured without networking support.

--- /usr/src/linux-2.5.45/net/socket.c  Mon Nov  4 12:12:19 2002
+++ linux-2.5.45/net/socket.c   Mon Nov  4 15:49:12 2002
@@ -74,7 +74,6 @@
 #include <linux/cache.h>
 #include <linux/module.h>
 #include <linux/highmem.h>
-#include <linux/wireless.h>
 #include <linux/divert.h>

 #if defined(CONFIG_KMOD) && defined(CONFIG_NET)
--- /usr/src/linux-2.5.45/net/core/skbuff.c     Mon Nov  4 12:12:19 2002
+++ linux-2.5.45/net/core/skbuff.c      Mon Nov  4 15:36:49 2002
@@ -324,7 +324,12 @@
        }

        dst_release(skb->dst);
+#ifdef CONFIG_INET
        secpath_put(skb->sp);
+#else
+       if (skb->sp)
+               atomic_dec(&skb->sp->refcnt);
+#endif
        if(skb->destructor) {
                if (in_irq())
                        printk(KERN_WARNING "Warning: kfree_skb on "


Best regards,
>> S. Effendi


[-- Attachment #2: no_networking.patch --]
[-- Type: application/octet-stream, Size: 703 bytes --]

--- /usr/src/linux-2.5.45/net/socket.c	Mon Nov  4 12:12:19 2002
+++ linux-2.5.45/net/socket.c	Mon Nov  4 15:49:12 2002
@@ -74,7 +74,6 @@
 #include <linux/cache.h>
 #include <linux/module.h>
 #include <linux/highmem.h>
-#include <linux/wireless.h>
 #include <linux/divert.h>
 
 #if defined(CONFIG_KMOD) && defined(CONFIG_NET)
--- /usr/src/linux-2.5.45/net/core/skbuff.c	Mon Nov  4 12:12:19 2002
+++ linux-2.5.45/net/core/skbuff.c	Mon Nov  4 15:36:49 2002
@@ -324,7 +324,12 @@
 	}
 
 	dst_release(skb->dst);
+#ifdef CONFIG_INET
 	secpath_put(skb->sp);
+#else
+	if (skb->sp)
+		atomic_dec(&skb->sp->refcnt);
+#endif
 	if(skb->destructor) {
 		if (in_irq())
 			printk(KERN_WARNING "Warning: kfree_skb on "

                 reply	other threads:[~2002-11-04 14:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20021104155450.2d0ddf6b.SEffendi@sysgo.de \
    --to=seffendi@sysgo.de \
    --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

all inboxes | Powered by JetHome®