Re: [PATCH 3/4] mm: mlock: update the interface to use folios
From: Lorenzo Stoakes
Date: Mon Dec 26 2022 - 01:53:14 EST
On Mon, Dec 26, 2022 at 09:05:42AM +0800, kernel test robot wrote:
> mm/mlock.c: In function 'mlock_pte_range':
> >> include/linux/page-flags.h:273:43: error: '_Generic' selector of type 'void *' is not compatible with any association
> 273 | #define page_folio(p) (_Generic((p), \
> | ^
> mm/mlock.c:323:25: note: in expansion of macro 'page_folio'
> 323 | folio = page_folio(pmd_page(*pmd));
> | ^~~~~~~~~~
>
OK so this is a product of motorola_pgtable.h defining pmd_page() as NULL and
the type magic in page_folio() getting confused. Easy fix, will spin a v2.