Re: [PATCH] mm/userfaultfd: fix hugetlb fault mutex hash calculation

From: Jianhui Zhou

Date: Sun Mar 08 2026 - 09:42:39 EST


On Fri, Mar 07, 2026 at 03:27:00AM +0000, SeongJae Park wrote:
> I just found this patch makes UML build fails as below.
>
> ../include/linux/hugetlb.h:1214:16: error: implicit declaration of
> function 'linear_page_index' [-Wimplicit-function-declaration]

Thanks for catching this! As Peter pointed out, the
!CONFIG_HUGETLB_PAGE stub is actually unnecessary since
mfill_atomic_hugetlb() is only compiled when CONFIG_HUGETLB_PAGE is
enabled. I have removed it in v2, which also fixes this build error.