Messages in this thread |  | | From | Michael Ellerman <> | Subject | Re: [PATCH v2 2/5] powerpc/32: Fix hugepage allocation on 8xx at hint address | Date | Sat, 27 Jan 2018 20:37:35 +1100 |
| |
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> writes:
> Christophe Leroy <christophe.leroy@c-s.fr> writes: > >> On the 8xx, the page size is set in the PMD entry and applies to >> all pages of the page table pointed by the said PMD entry. >> ... >> diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c >> index a9b9083c5e49..79e1378ee303 100644 >> --- a/arch/powerpc/mm/hugetlbpage.c >> +++ b/arch/powerpc/mm/hugetlbpage.c >> @@ -553,9 +553,11 @@ unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr, >> struct hstate *hstate = hstate_file(file); >> int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate)); >> >> +#ifdef CONFIG_PPC_RADIX_MMU >> if (radix_enabled()) >> return radix__hugetlb_get_unmapped_area(file, addr, len, >> pgoff, flags); >> +#endif > > if (0) didn't remove the following radix__hugetlb_get_unmapped_area for > you?
It will remove the call, but you still need at least a prototype, or an empty static inline.
cheers
|  |