Christophe LEROY <christophe.leroy@xxxxxx> writes: > diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c >> index 8cf035e68378..39d33a3d0dc6 100644 >> --- a/arch/powerpc/mm/hugetlbpage.c >> +++ b/arch/powerpc/mm/hugetlbpage.c >> @@ -912,3 +912,32 @@ int gup_hugepte(pte_t *ptep, unsigned long sz, unsigned long addr, >> >> return 1; >> } >> + >> +#ifdef CONFIG_PPC_BOOK3S_64 > > Could this go in hugetlbpage-hash64.c instead to avoid the #ifdef sequence ? > yes. I will send updated patch as reply -aneesh