Messages in this thread | ![/](/images/icornerl.gif) | | Date | Mon, 17 Feb 2003 12:55:04 +0000 | From | Christoph Hellwig <> | Subject | Re: [PATCH] Make sysctl vm subdir dependent on CONFIG_MMU |
| |
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() - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |