From: Adrian Bunk <bunk@stusta.de>
To: wli@holomorphy.com
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] proper prototype for hugetlb_get_unmapped_area()
Date: Sat, 25 Nov 2006 20:18:20 +0100 [thread overview]
Message-ID: <20061125191820.GL3702@stusta.de> (raw)
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)
next reply other threads:[~2006-11-25 19:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-25 19:18 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-02-20 0:06 [2.6 patch] proper prototype for hugetlb_get_unmapped_area() Adrian Bunk
2007-02-20 0:40 ` William Lee Irwin III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061125191820.GL3702@stusta.de \
--to=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.