* [PATCH] make net/ipv4/route.c compile without CONFIG_PROC_FS
@ 2002-12-10 21:08 Arnd Bergmann
2002-12-10 21:21 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2002-12-10 21:08 UTC (permalink / raw)
To: 'Arnaldo Carvalho de Melo'; +Cc: Linux Kernel
The recent cleanup of /proc/net/rt_cache broke compiling
without procfs, this makes it work again.
===== net/ipv4/route.c 1.31 vs edited =====
--- 1.31/net/ipv4/route.c Sun Dec 8 03:45:58 2002
+++ edited/net/ipv4/route.c Tue Dec 10 22:01:36 2002
@@ -402,6 +402,11 @@
{
remove_proc_entry("rt_cache", proc_net);
}
+#else
+
+#define rt_cache_stat_get_info (get_info_t*)0
+static inline int rt_cache_proc_init(void) { return 0; }
+
#endif /* CONFIG_PROC_FS */
static __inline__ void rt_free(struct rtable *rt)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] make net/ipv4/route.c compile without CONFIG_PROC_FS
2002-12-10 21:08 [PATCH] make net/ipv4/route.c compile without CONFIG_PROC_FS Arnd Bergmann
@ 2002-12-10 21:21 ` Arnaldo Carvalho de Melo
2002-12-11 8:47 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-12-10 21:21 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Linux Kernel
Em Tue, Dec 10, 2002 at 10:08:31PM +0100, Arnd Bergmann escreveu:
> The recent cleanup of /proc/net/rt_cache broke compiling
> without procfs, this makes it work again.
>
> ===== net/ipv4/route.c 1.31 vs edited =====
> --- 1.31/net/ipv4/route.c Sun Dec 8 03:45:58 2002
> +++ edited/net/ipv4/route.c Tue Dec 10 22:01:36 2002
> @@ -402,6 +402,11 @@
> {
> remove_proc_entry("rt_cache", proc_net);
> }
> +#else
> +
> +#define rt_cache_stat_get_info (get_info_t*)0
> +static inline int rt_cache_proc_init(void) { return 0; }
> +
> #endif /* CONFIG_PROC_FS */
>
> static __inline__ void rt_free(struct rtable *rt)
uups, sorry, but this will not be needed after I convert the rest
of net/ipv4/route.c to seq_file.
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] make net/ipv4/route.c compile without CONFIG_PROC_FS
2002-12-10 21:21 ` Arnaldo Carvalho de Melo
@ 2002-12-11 8:47 ` David S. Miller
0 siblings, 0 replies; 3+ messages in thread
From: David S. Miller @ 2002-12-11 8:47 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: Arnd Bergmann, Linux Kernel
On Tue, 2002-12-10 at 13:21, Arnaldo Carvalho de Melo wrote:
> uups, sorry, but this will not be needed after I convert the rest
> of net/ipv4/route.c to seq_file.
So I'll just wait for that :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-11 8:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 21:08 [PATCH] make net/ipv4/route.c compile without CONFIG_PROC_FS Arnd Bergmann
2002-12-10 21:21 ` Arnaldo Carvalho de Melo
2002-12-11 8:47 ` David S. Miller
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.