Re: [PATCH v3 11/15] mm, swap: use the swap table for the swap cache and switch API

Lorenzo Stoakes
2025-09-12T09:21:26Z

On Thu, Sep 11, 2025 at 10:27:32AM +0800, Lance Yang wrote:
> Hi Kairui,
>
> I'm hitting a build error with allnoconfig:
>
> In file included from mm/shmem.c:44:
> mm/swap.h: In function ‘folio_index’:
> mm/swap.h:462:24: error: implicit declaration of function
> ‘swp_offset’; did you mean ‘pmd_offset’?
> [-Wimplicit-function-declaration]
> 462 | return swp_offset(folio->swap);
>
> It looks like a header might be missing in mm/swap.h. Please let me know
> if you need any more information.

Thanks, I just hit this too with a nommu build locally :)

>
> Cheers,
> Lance

Cheers, Lorenzo