From: "Paul Rolland" <rol@witbe.net>
To: <davem@redhat.com>, <kuznet@ms2.inr.ac.ru>,
<linux-kernel@vger.kernel.org>
Cc: <rol@as2917.net>
Subject: [PATCH 2.5.56] net/ipv4/route.c doesn't compile without /proc support
Date: Sun, 12 Jan 2003 12:18:26 +0100 [thread overview]
Message-ID: <008c01c2ba2c$5452e000$2101a8c0@witbe> (raw)
Hello,
Here is a quick patch to allow correct compile of net/ipv4/route.c
when not using /proc support.
Without it, some attempts to create entries in /proc are resulting
in invoking functions that are protected by #ifdef CONFIG_PROC_FS...
Regards,
Paul Rolland, rol@as2917.net
--- linux-2.5.56/net/ipv4/route.c 2003-01-10 21:12:25.000000000
+0100
+++ linux-2.5.56-work/net/ipv4/route.c 2003-01-12 12:11:30.000000000
+0100
@@ -2672,12 +2672,14 @@
ip_rt_gc_interval;
add_timer(&rt_periodic_timer);
+#ifdef CONFIG_PROC_FS
if (rt_cache_proc_init())
goto out_enomem;
proc_net_create ("rt_cache_stat", 0, rt_cache_stat_get_info);
#ifdef CONFIG_NET_CLS_ROUTE
create_proc_read_entry("net/rt_acct", 0, 0, ip_rt_acct_read,
NULL);
#endif
+#endif
xfrm_init();
out:
return rc;
next reply other threads:[~2003-01-12 11:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-12 11:18 Paul Rolland [this message]
2003-01-13 8:09 ` [PATCH 2.5.56] net/ipv4/route.c doesn't compile without /proc support David S. Miller
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='008c01c2ba2c$5452e000$2101a8c0@witbe' \
--to=rol@witbe.net \
--cc=davem@redhat.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=rol@as2917.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.