From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:01 +0000 (+1100) Subject: mm-vmscan-clean-up-get_scan_count-fix X-Git-Tag: next-20130220~1^2~586 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc6f2a48f9415d47a70a1c77756385f568257691;p=karo-tx-linux.git mm-vmscan-clean-up-get_scan_count-fix avoid using unintialized_var() Cc: Hugh Dickins Cc: Johannes Weiner Cc: Mel Gorman Cc: Michal Hocko Cc: Rik van Riel Cc: Satoru Moriya Cc: Simon Jeons Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 438c336af9d1..d4f37634194e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1658,7 +1658,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, unsigned long *nr) { struct zone_reclaim_stat *reclaim_stat = &lruvec->reclaim_stat; - u64 fraction[2], uninitialized_var(denominator); + u64 fraction[2]; + u64 denominator = 0; /* gcc */ struct zone *zone = lruvec_zone(lruvec); unsigned long anon_prio, file_prio; enum scan_balance scan_balance;