* [2.6 patch] proper prototype for hugetlb_get_unmapped_area()
@ 2006-11-25 19:18 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2006-11-25 19:18 UTC (permalink / raw)
To: wli; +Cc: linux-kernel
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] proper prototype for hugetlb_get_unmapped_area()
@ 2007-02-20 0:06 Adrian Bunk
2007-02-20 0:40 ` William Lee Irwin III
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2007-02-20 0:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: wli, linux-kernel
This patch adds a proper prototype for hugetlb_get_unmapped_area() in
include/linux/hugetlb.h.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
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(-)
--- 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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] proper prototype for hugetlb_get_unmapped_area()
2007-02-20 0:06 Adrian Bunk
@ 2007-02-20 0:40 ` William Lee Irwin III
0 siblings, 0 replies; 3+ messages in thread
From: William Lee Irwin III @ 2007-02-20 0:40 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Andrew Morton, linux-kernel
On Tue, Feb 20, 2007 at 01:06:34AM +0100, Adrian Bunk wrote:
> This patch adds a proper prototype for hugetlb_get_unmapped_area() in
> include/linux/hugetlb.h.
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> 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(-)
I don't see why not.
Acked-by: William Irwin <wli@holomorphy.com>
-- wli
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-20 0:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-25 19:18 [2.6 patch] proper prototype for hugetlb_get_unmapped_area() Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2007-02-20 0:06 Adrian Bunk
2007-02-20 0:40 ` William Lee Irwin III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.