mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@bergmann-dalldorf.de>
To: "'Arnaldo Carvalho de Melo'" <acme@conectiva.com.br>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] make net/ipv4/route.c compile without CONFIG_PROC_FS
Date: Tue, 10 Dec 2002 22:08:31 +0100	[thread overview]
Message-ID: <200212102208.31562.arnd@bergmann-dalldorf.de> (raw)

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)


             reply	other threads:[~2002-12-10 21:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 21:08 Arnd Bergmann [this message]
2002-12-10 21:21 ` Arnaldo Carvalho de Melo
2002-12-11  8:47   ` 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=200212102208.31562.arnd@bergmann-dalldorf.de \
    --to=arnd@bergmann-dalldorf.de \
    --cc=acme@conectiva.com.br \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®