* [PATCH] error compiling v2.5.45 using xtreme minimal .config
@ 2002-11-04 14:54 Soewono Effendi
0 siblings, 0 replies; only message in thread
From: Soewono Effendi @ 2002-11-04 14:54 UTC (permalink / raw)
To: linux-kernel mlist
[-- 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 "
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-04 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 14:54 [PATCH] error compiling v2.5.45 using xtreme minimal .config Soewono Effendi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).