Skip to content

Commit

Permalink
mm/memcontrol.c: suppress uninitialized-var warning with older gcc's
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: Greg Thelen <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Mar 24, 2011
1 parent 7a159cc commit 4be4489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? */
Expand Down

0 comments on commit 4be4489

Please sign in to comment.