Re: [PATCH v1] hugetlb: support FOLL_FORCE|FOLL_WRITE

From: Guillaume Morin
Date: Wed Dec 04 2024 - 20:57:16 EST


On 05 Dec 2:42, Guillaume Morin wrote:
>
> On 05 Dec 8:39, kernel test robot wrote:
> > All errors (new ones prefixed by >>):
> >
> > mm/gup.c: In function 'can_follow_write_pud':
> > >> mm/gup.c:665:48: error: implicit declaration of function 'pud_soft_dirty'; did you mean 'pmd_soft_dirty'? [-Werror=implicit-function-declaration]
> > 665 | return !vma_soft_dirty_enabled(vma) || pud_soft_dirty(pud);
> > | ^~~~~~~~~~~~~~
> > | pmd_soft_dirty
> > cc1: some warnings being treated as errors
>
> David, how do you recommend I deal with this?
>
> There is no prototype for pud_soft_dirty() in include/linux/pgtable.h
> if CONFIG_HAVE_ARCH_SOFT_DIRTY is not set. Should I just add one?

I am going to respin v3 with that. Let me know if you think it makes
sense or you think it should be fixed some other way

--
Guillaume Morin <guillaume@xxxxxxxxxxx>