lkml.org 
[lkml]   [2006]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] proper prototype for hugetlb_get_unmapped_area()
This patch adds a proper prototype for hugetlb_get_unmapped_area() in 
include/linux/hugetlb.h.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

fs/hugetlbfs/inode.c | 5 +----
include/linux/hugetlb.h | 7 +++++++
2 files changed, 8 insertions(+), 4 deletions(-)


--- linux-2.6.19-rc6-mm1/include/linux/hugetlb.h.old 2006-11-25 00:37:47.000000000 +0100
+++ linux-2.6.19-rc6-mm1/include/linux/hugetlb.h 2006-11-25 00:44:41.000000000 +0100
@@ -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 */
--- linux-2.6.19-rc6-mm1/fs/hugetlbfs/inode.c.old 2006-11-25 00:38:14.000000000 +0100
+++ linux-2.6.19-rc6-mm1/fs/hugetlbfs/inode.c 2006-11-25 00:41:12.000000000 +0100
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-25 20:23    [W:0.022 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site