Commit 31c9fa59 authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Make some symbol exports conditional on CONFIG_MMU

A few symbols are only defined when CONFIG_MMU=y, but are exported
(by kernel/ksyms.c) unconditionally.  This patch makes them conditional.
parent bacb63a9
......@@ -328,7 +328,9 @@ EXPORT_SYMBOL(set_anon_super);
/* 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);
......@@ -524,7 +526,9 @@ EXPORT_SYMBOL(single_open);
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment