mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
proper prototype for hugetlb_get_unmapped_area()
Add a proper prototype for hugetlb_get_unmapped_area() in include/linux/hugetlb.h. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1b4244647c
commit
d2ba27e800
@ -98,10 +98,7 @@ out:
|
|||||||
* Called under down_write(mmap_sem).
|
* Called under down_write(mmap_sem).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_ARCH_HUGETLB_UNMAPPED_AREA
|
#ifndef 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
|
|
||||||
static unsigned long
|
static unsigned long
|
||||||
hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
|
hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
|
||||||
unsigned long len, unsigned long pgoff, unsigned long flags)
|
unsigned long len, unsigned long pgoff, unsigned long flags)
|
||||||
|
@ -189,4 +189,10 @@ static inline void set_file_hugepages(struct file *file)
|
|||||||
|
|
||||||
#endif /* !CONFIG_HUGETLBFS */
|
#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 */
|
#endif /* _LINUX_HUGETLB_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user