On Fri, 2012-09-28 at 11:43 +0800, Zhenzhong Duan wrote:I tested both cases, no warning, also didn't see -Wmaybe-uninitialized when make.On 2012-09-27 19:35, Paul Bolle wrote:Not even before applying your patch? Anyhow, after applying your patchI think setting pages_to_unuse to zero here is not needed. It isYes, it's unneeded. But I didn't see warning as you said in above link
initiated to zero in frontswap_shrink() and hasn't been touched since.
See my patch at https://lkml.org/lkml/2012/9/27/250.
when run 'make V=1 mm/frontswap.o'.
the warnings gone here too.