summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-01-16 02:01:35 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-01-16 21:15:40 +0100
commitefc1a3b16930c41d64ffefde16b87d82f603a8a0 (patch)
tree1f651e22f534f1b3eacd2fab97e9351aa75abd0b /mm/util.c
parentnommu: remove a superfluous check of vm_region::vm_usage (diff)
downloadlinux-efc1a3b16930c41d64ffefde16b87d82f603a8a0.tar.xz
linux-efc1a3b16930c41d64ffefde16b87d82f603a8a0.zip
nommu: don't need get_unmapped_area() for NOMMU
get_unmapped_area() is unnecessary for NOMMU as no-one calls it. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Al Viro <viro@zeniv.linux.org.uk> Cc: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--mm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/util.c b/mm/util.c
index 7c35ad95f927..834db7be240f 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -220,7 +220,7 @@ char *strndup_user(const char __user *s, long n)
}
EXPORT_SYMBOL(strndup_user);
-#ifndef HAVE_ARCH_PICK_MMAP_LAYOUT
+#if defined(CONFIG_MMU) && !defined(HAVE_ARCH_PICK_MMAP_LAYOUT)
void arch_pick_mmap_layout(struct mm_struct *mm)
{
mm->mmap_base = TASK_UNMAPPED_BASE;