Skip to contentSkip to conversation

error compiling v2.5.45 using xtreme minimal .config

PATCH New Soewono Effendi 1 participant 1 message Nov 4, 2002

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 error compiling v2.5.45 using xtreme minimal .config

Hi all,

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

net/socket.c Mon Nov 4 15:49:12 2002 renamed from usr/src/linux-2.5.45/net/socket.c Mon Nov 4 12:12:19 2002 +0 -1
@@ -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)
net/core/skbuff.c Mon Nov 4 15:36:49 2002 renamed from usr/src/linux-2.5.45/net/core/skbuff.c Mon Nov 4 12:12:19 2002 +5 -0
@@ -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,

Quoted 1 line
Quoted 1 line

S. Effendi

net/socket.c renamed from usr/src/linux-2.5.45/net/socket.c +0 -1
@@ -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)
net/core/skbuff.c renamed from usr/src/linux-2.5.45/net/core/skbuff.c +5 -0
@@ -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 "