From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> older gcc's are dumb: fs/fs-writeback.c: In function 'writeback_single_inode': fs/fs-writeback.c:334: warning: 'nr_to_write' may be used uninitialized in this function Cc: Chris Mason <chris.mason@xxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Dave Chinner <david@xxxxxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> Cc: Li Shaohua <shaohua.li@xxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Cc: Michael Rubin <mrubin@xxxxxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: Richard Kennedy <richard@xxxxxxxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Theodore Ts'o <tytso@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx> LKML-Reference: <201011180023.oAI0NXFl014362@xxxxxxxxxxxxxxxxxxxxxxxxxx> --- fs/fs-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next.orig/fs/fs-writeback.c 2010-12-08 22:44:26.000000000 +0800 +++ linux-next/fs/fs-writeback.c 2010-12-08 22:44:27.000000000 +0800 @@ -331,7 +331,7 @@ writeback_single_inode(struct inode *ino { struct address_space *mapping = inode->i_mapping; long per_file_limit = wbc->per_file_limit; - long nr_to_write; + long uninitialized_var(nr_to_write); unsigned dirty; int ret; -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html