Re: linux-next: build warning after merge of the akpm-current tree

From: Baoquan He
Date: Mon Mar 16 2020 - 00:58:21 EST


On 03/13/20 at 09:42pm, Stephen Rothwell wrote:
> After merging the akpm-current tree, today's linux-next build (x86_64
> allnoconfig) produced this warning:
>
> mm/sparse.c:311:12: warning: 'fill_subsection_map' defined but not used [-Wunused-function]
> 311 | static int fill_subsection_map(unsigned long pfn, unsigned long nr_pages)
> | ^~~~~~~~~~~~~~~~~~~
> mm/sparse.c:306:13: warning: 'is_subsection_map_empty' defined but not used [-Wunused-function]
> 306 | static bool is_subsection_map_empty(struct mem_section *ms)
> | ^~~~~~~~~~~~~~~~~~~~~~~
> mm/sparse.c:301:12: warning: 'clear_subsection_map' defined but not used [-Wunused-function]
> 301 | static int clear_subsection_map(unsigned long pfn, unsigned long nr_pages)
> | ^~~~~~~~~~~~~~~~~~~~

Hi Stephen, Andrew,

I made a patch to fix these warnings, the reason has been told in the
log. Or just drop below patch. Both is fine to me.

mm-sparsec-move-subsection_map-related-functions-together.patch