Skip to contentSkip to conversation

make net/ipv4/route.c compile without CONFIG_PROC_FS

PATCH In review Arnd Bergmann 3 participants 3 messages Dec 10, 2002 – Dec 11, 2002

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

PATCH 1/1 make net/ipv4/route.c compile without CONFIG_PROC_FS

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 =====

net/ipv4/route.c Tue Dec 10 22:01:36 2002 renamed from net/ipv4/route.c Sun Dec 8 03:45:58 2002 +5 -0
@@ -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)
#1 lore raw

Em Tue, Dec 10, 2002 at 10:08:31PM +0100, Arnd Bergmann escreveu:

Quoted 8 lines

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 =====

net/ipv4/route.c Tue Dec 10 22:01:36 2002 renamed from net/ipv4/route.c Sun Dec 8 03:45:58 2002 +0 -0
@@ -402,6 +402,11 @@
 {

net/ipv4/route.c Tue Dec 10 22:01:36 2002 line 412

Quoted 10 lines
net/ipv4/route.c Tue Dec 10 22:01:36 2002 renamed from net/ipv4/route.c Sun Dec 8 03:45:58 2002 +5 -0
        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

#2 lore raw
Quoted 2 lines · Arnaldo Carvalho de Melo

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 :-)