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

From: SeongJae Park

Date: Sun Mar 08 2026 - 18:57:47 EST


On Sun, 8 Mar 2026 21:41:51 +0800 Jianhui Zhou <jianhuizzzzz@xxxxxxxxx> wrote:

> 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.

Makes sense, thank you for the kind update, Jianhui!

I also confirmed mm-new that updated with the v2 doesn't cause the build error.


Thanks,
SJ

[...]