Skip to contentSkip to conversation

proper prototype for hugetlb_get_unmapped_area()

PATCH In review Adrian Bunk 2 participants 2 messages Feb 20, 2007 HugeTLB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proper prototype for hugetlb_get_unmapped_area()

This patch adds a proper prototype for hugetlb_get_unmapped_area() in include/linux/hugetlb.h.

---

This patch was already sent on:
- 25 Nov 2006

 fs/hugetlbfs/inode.c    |    5 +----
 include/linux/hugetlb.h |    7 +++++++
 2 files changed, 8 insertions(+), 4 deletions(-)
include/linux/hugetlb.h renamed from include/linux/hugetlb.h.old +6 -0
@@ -183,4 +184,10 @@
 
 #endif /* !CONFIG_HUGETLBFS */
 
+#ifdef HAVE_ARCH_HUGETLB_UNMAPPED_AREA
+unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+					unsigned long len, unsigned long pgoff,
+					unsigned long flags);
+#endif /* HAVE_ARCH_HUGETLB_UNMAPPED_AREA */
+
 #endif /* _LINUX_HUGETLB_H */
fs/hugetlbfs/inode.c renamed from fs/hugetlbfs/inode.c.old +1 -4
@@ -98,10 +98,7 @@
  * Called under down_write(mmap_sem).
  */
 
-#ifdef HAVE_ARCH_HUGETLB_UNMAPPED_AREA
-unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
-		unsigned long len, unsigned long pgoff, unsigned long flags);
-#else
+#ifndef HAVE_ARCH_HUGETLB_UNMAPPED_AREA
 static unsigned long
 hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 		unsigned long len, unsigned long pgoff, unsigned long flags)