Re: [PATCH] mm: cleanup balance_dirty_pages() that leave variables uninitialized

From: Liao Tonglang
Date: Mon Oct 12 2015 - 21:42:04 EST


On 2015/10/12 20:58, Jan Kara wrote:
What
gcc version are you using?
It is the last line of my gcc -v command.
gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)
And it warn like this:
mm/page-writeback.c: In function ‘balance_dirty_pages.isra.26’:
mm/page-writeback.c:1537:26: warning: ‘m_thresh’ may be used uninitialized in this function [-Wmaybe-uninitialized]
unsigned long m_dirty, m_thresh, m_bg_thresh;
^
mm/page-writeback.c:1537:17: warning: ‘m_dirty’ may be used uninitialized in this function [-Wmaybe-uninitialized]
unsigned long m_dirty, m_thresh, m_bg_thresh;
^

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/