[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f8106f9a-6832-e724-7edd-c758d6477e0a@huawei.com>
Date: Fri, 21 May 2021 14:53:13 +0800
From: Miaohe Lin <linmiaohe@...wei.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
Andrew Morton <akpm@...ux-foundation.org>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Linux Next Mailing List" <linux-next@...r.kernel.org>
Subject: Re: linux-next: build warning after merge of the akpm-current tree
On 2021/5/21 13:39, Stephen Rothwell wrote:
> Hi all,
>
> After merging the akpm-current tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
>
> mm/swapfile.c:1039:22: warning: 'scan_swap_map' defined but not used [-Wunused-function]
> 1039 | static unsigned long scan_swap_map(struct swap_info_struct *si,
> | ^~~~~~~~~~~~~
>
> Introduced by commit
>
> c9ea6b99df3c ("mm/swapfile: move get_swap_page_of_type() under CONFIG_HIBERNATION")
>
> # CONFIG_HIBERNATION is not set
It seems that scan_swap_map is only used by get_swap_page_of_type(). I should have been more careful
and move it under CONFIG_HIBERNATION too. I will send a patch to fix this. Many thanks!
>
Powered by blists - more mailing lists