From: Andrew Morton Date: Wed, 23 Mar 2011 23:42:39 +0000 (-0700) Subject: mm/memcontrol.c: suppress uninitialized-var warning with older gcc's X-Git-Tag: upstream/snapshot3+hdmi~10895 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4be4489feae6da890765cc1bdc1af5e4f8c4b75f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm/memcontrol.c: suppress uninitialized-var warning with older gcc's mm/memcontrol.c: In function 'mem_cgroup_force_empty': mm/memcontrol.c:2280: warning: 'flags' may be used uninitialized in this function It's a false positive. Cc: Balbir Singh Cc: Daisuke Nishimura Cc: Greg Thelen Cc: Johannes Weiner Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index e5759b5..61ffe71 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2334,7 +2334,7 @@ static int mem_cgroup_move_parent(struct page *page, struct cgroup *pcg = cg->parent; struct mem_cgroup *parent; unsigned int nr_pages; - unsigned long flags; + unsigned long uninitialized_var(flags); int ret; /* Is ROOT ? */