Re: [akpm-mm:mm-unstable 255/261] include/linux/mm.h:1556:29: error: conflicting types for 'page_to_section'; have 'long unsigned int(const struct page *)'

From: Matthew Wilcox
Date: Sat Jun 18 2022 - 17:17:28 EST


On Sat, Jun 18, 2022 at 03:00:58PM +0800, kernel test robot wrote:
> config: parisc64-defconfig (https://download.01.org/0day-ci/archive/20220618/202206181437.AwvGIkuq-lkp@xxxxxxxxx/config)

Ugh, SPARSEMEM without SPARSEMEM_VMEMMAP.

> include/linux/mm.h: In function 'destroy_large_folio':
> >> 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]
> include/linux/mm.h:214:38: note: in expansion of macro 'page_to_pfn'
> 214 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
> | ^~~~~~~~~~~

Needs some rearranging of the header file to make this work.

I don't think it's the right time to do that, and this patch can just be
dropped for this cycle. It shouldn't affect the subsequent patches in
the series, AFAICT.