aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-03-23 19:42:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 22:46:32 -0400
commit4be4489feae6da890765cc1bdc1af5e4f8c4b75f (patch)
treec7c1154aaba8e59523024c119fdf769284023a35 /mm
parent7a159cc9d7987cdb4853f8711f5f89e01cfffe42 (diff)
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 <balbir@linux.vnet.ibm.com> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Cc: Greg Thelen <gthelen@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index e5759b51f37e..61ffe712afe0 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2334,7 +2334,7 @@ static int mem_cgroup_move_parent(struct page *page,
2334 struct cgroup *pcg = cg->parent; 2334 struct cgroup *pcg = cg->parent;
2335 struct mem_cgroup *parent; 2335 struct mem_cgroup *parent;
2336 unsigned int nr_pages; 2336 unsigned int nr_pages;
2337 unsigned long flags; 2337 unsigned long uninitialized_var(flags);
2338 int ret; 2338 int ret;
2339 2339
2340 /* Is ROOT ? */ 2340 /* Is ROOT ? */