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

From: Huang\, Ying
Date: Tue Aug 01 2017 - 02:15:35 EST


Hi, Stephen,

Thanks for reporting.

Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> writes:

> Hi Andrew,
>
> After merging the akpm tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> mm/swapfile.c: In function 'reuse_swap_page':
> mm/swapfile.c:1429:16: warning: 'offset' may be used uninitialized in this function [-Wmaybe-uninitialized]
> unsigned long offset;
> ^
>
> Introduced by commit
>
> e16cd4930836 ("mm, THP, swap: make reuse_swap_page() works for THP swapped out")

This looks like a false positive reporting and not reported by my
compiler and kbuild compiler (gcc-6). But anyway, we should silence it.

Best Regards,
Huang, Ying

---------->8----------