[PATCH] Make some symbol exports conditional on CONFIG_MMU

From: Miles Bader (miles@lsi.nec.co.jp)
Date: Wed Dec 18 2002 - 21:33:59 EST


A few symbols are only defined when CONFIG_MMU=y, but are exported
(by kernel/ksyms.c) unconditionally. This patch makes them conditional.

diff -ruN -X../cludes ../orig/linux-2.5.52-uc0/kernel/ksyms.c kernel/ksyms.c
--- ../orig/linux-2.5.52-uc0/kernel/ksyms.c 2002-12-16 12:53:59.000000000 +0900
+++ kernel/ksyms.c 2002-12-17 17:23:49.000000000 +0900
@@ -327,7 +327,9 @@
 /* for stackable file systems (lofs, wrapfs, cryptfs, etc.) */
 EXPORT_SYMBOL(default_llseek);
 EXPORT_SYMBOL(dentry_open);
+#ifdef CONFIG_MMU
 EXPORT_SYMBOL(filemap_nopage);
+#endif
 EXPORT_SYMBOL(filemap_fdatawrite);
 EXPORT_SYMBOL(filemap_fdatawait);
 EXPORT_SYMBOL(lock_page);
@@ -523,7 +525,9 @@
 EXPORT_SYMBOL(single_release);
 
 /* Program loader interfaces */
+#ifdef CONFIG_MMU
 EXPORT_SYMBOL(setup_arg_pages);
+#endif
 EXPORT_SYMBOL(copy_strings_kernel);
 EXPORT_SYMBOL(do_execve);
 EXPORT_SYMBOL(flush_old_exec);
-
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/



This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:22 EST