Re: [willy-pagecache:for-next 13/75] include/linux/mm.h:1570:29: error: conflicting types for 'page_to_section'; have 'long unsigned int(const struct page *)'

From: Matthew Wilcox
Date: Fri Feb 04 2022 - 20:10:00 EST


On Sat, Feb 05, 2022 at 06:54:20AM +0800, kernel test robot wrote:
> commit: 8788d4b404865697ebe822cff65a1380728ba251 [13/75] mm: Add folio_pincount_ptr()
> include/linux/mm.h: In function 'folio_pincount_ptr':
> include/asm-generic/memory_model.h:35:21: error: implicit declaration of function 'page_to_section'; did you mean 'present_section'? [-Werror=implicit-function-declaration]

Grr. I can't use folio_page() until after page_to_section(). So I've
moved a lot of code around in patches 13 and 14. New version pushed to
infradead.