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

From: Feng Tang
Date: Mon Jul 19 2021 - 05:05:13 EST


Hi Stephen,

On Mon, Jul 19, 2021 at 05:52:03PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the akpm-current tree, today's linux-next build (i386
> defconfig) produced this warning:
>
> mm/hugetlb.c: In function 'dequeue_huge_page_vma':
> mm/hugetlb.c:1180:1: warning: label 'check_reserve' defined but not used [-Wunused-label]
> 1180 | check_reserve:
> | ^~~~~~~~~~~~~
>
> Introduced by commit
>
> df178183cf05 ("mm/hugetlb: add support for mempolicy MPOL_PREFERRED_MANY")

Thanks for the report!

The below patch should fix it (Also attached).

Andrew,

Could you help to fold it to the 4/6 of patchset of "introducing
multi-preference memplicy":
[PATCH v6 4/6] mm/hugetlb: add support for mempolicy MPOL_PREFERRED_MANY

Thanks!

- Feng

--------------------------------8<-----------------------------------