[PATCH] error compiling v2.5.45 using xtreme minimal .config

From: Soewono Effendi (SEffendi@sysgo.de)
Date: Mon Nov 04 2002 - 09:54:50 EST


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



-
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/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:32 EST