* [PATCH 2.5.56] net/ipv4/route.c doesn't compile without /proc support
@ 2003-01-12 11:18 Paul Rolland
2003-01-13 8:09 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Paul Rolland @ 2003-01-12 11:18 UTC (permalink / raw)
To: davem, kuznet, linux-kernel; +Cc: rol
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.5.56] net/ipv4/route.c doesn't compile without /proc support
2003-01-12 11:18 [PATCH 2.5.56] net/ipv4/route.c doesn't compile without /proc support Paul Rolland
@ 2003-01-13 8:09 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-01-13 8:09 UTC (permalink / raw)
To: rol; +Cc: kuznet, linux-kernel, rol
APplied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-13 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-12 11:18 [PATCH 2.5.56] net/ipv4/route.c doesn't compile without /proc support Paul Rolland
2003-01-13 8:09 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox