Commit 4be4489f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7a159cc9
...@@ -2334,7 +2334,7 @@ static int mem_cgroup_move_parent(struct page *page, ...@@ -2334,7 +2334,7 @@ static int mem_cgroup_move_parent(struct page *page,
struct cgroup *pcg = cg->parent; struct cgroup *pcg = cg->parent;
struct mem_cgroup *parent; struct mem_cgroup *parent;
unsigned int nr_pages; unsigned int nr_pages;
unsigned long flags; unsigned long uninitialized_var(flags);
int ret; int ret;
/* Is ROOT ? */ /* Is ROOT ? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment