mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Miles Bader <miles@gnu.org>
Cc: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]  Make sysctl vm subdir dependent on CONFIG_MMU
Date: Mon, 17 Feb 2003 12:55:04 +0000	[thread overview]
Message-ID: <20030217125504.A25066@infradead.org> (raw)
In-Reply-To: <20030217105900.5E2683728@mcspd15.ucom.lsi.nec.co.jp>; from miles@lsi.nec.co.jp on Mon, Feb 17, 2003 at 07:59:00PM +0900

On Mon, Feb 17, 2003 at 07:59:00PM +0900, Miles Bader wrote:
> diff -ruN -X../cludes linux-2.5.61-uc0.orig/kernel/sysctl.c linux-2.5.61-uc0/kernel/sysctl.c
> --- linux-2.5.61-uc0.orig/kernel/sysctl.c	2002-12-16 12:53:59.000000000 +0900
> +++ linux-2.5.61-uc0/kernel/sysctl.c	2003-02-17 19:24:58.000000000 +0900
> @@ -111,7 +111,9 @@
>  	{ root_table, LIST_HEAD_INIT(root_table_header.ctl_entry) };
>  
>  static ctl_table kern_table[];
> +#ifdef CONFIG_MMU
>  static ctl_table vm_table[];
> +#endif

These ifdefs are ugly - please move the whole table into a file that
isn't compiled when CONFIG_MMU isn't set (e.g. memory.c) and use
register_sysctl_table()

  reply	other threads:[~2003-02-17 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-17 10:59 Miles Bader
2003-02-17 12:55 ` Christoph Hellwig [this message]
2003-02-17 14:09   ` Miles Bader
2003-02-17 14:20     ` Christoph Hellwig

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=20030217125504.A25066@infradead.org \
    --to=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miles@gnu.org \
    --cc=torvalds@transmeta.com \
    /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®