summaryrefslogtreecommitdiffstats
path: root/include/linux/mm_types.h
diff options
context:
space:
mode:
authorDavid Howells2010-01-16 02:01:35 +0100
committerLinus Torvalds2010-01-16 21:15:40 +0100
commitefc1a3b16930c41d64ffefde16b87d82f603a8a0 (patch)
tree1f651e22f534f1b3eacd2fab97e9351aa75abd0b /include/linux/mm_types.h
parentnommu: remove a superfluous check of vm_region::vm_usage (diff)
downloadkernel-qcow2-linux-efc1a3b16930c41d64ffefde16b87d82f603a8a0.tar.gz
kernel-qcow2-linux-efc1a3b16930c41d64ffefde16b87d82f603a8a0.tar.xz
kernel-qcow2-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 'include/linux/mm_types.h')
-rw-r--r--include/linux/mm_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 80cfa78a8cf6..36f96271306c 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -205,10 +205,12 @@ struct mm_struct {
struct vm_area_struct * mmap; /* list of VMAs */
struct rb_root mm_rb;
struct vm_area_struct * mmap_cache; /* last find_vma result */
+#ifdef CONFIG_MMU
unsigned long (*get_unmapped_area) (struct file *filp,
unsigned long addr, unsigned long len,
unsigned long pgoff, unsigned long flags);
void (*unmap_area) (struct mm_struct *mm, unsigned long addr);
+#endif
unsigned long mmap_base; /* base of mmap area */
unsigned long task_size; /* size of task vm space */
unsigned long cached_hole_size; /* if non-zero, the largest hole below free_area_cache */