diff options
author | David Howells <dhowells@redhat.com> | 2010-01-15 17:01:35 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-16 12:15:40 -0800 |
commit | efc1a3b16930c41d64ffefde16b87d82f603a8a0 (patch) | |
tree | 1f651e22f534f1b3eacd2fab97e9351aa75abd0b /mm/util.c | |
parent | 779c10232ceb11c1b259232c4845cfb2850287b7 (diff) | |
download | op-kernel-dev-efc1a3b16930c41d64ffefde16b87d82f603a8a0.zip op-kernel-dev-efc1a3b16930c41d64ffefde16b87d82f603a8a0.tar.gz |
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 'mm/util.c')
-rw-r--r-- | mm/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |