aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMichele Curti <michele.curti@gmail.com>2014-12-12 19:56:35 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 15:42:49 -0500
commitae6e71d3d900c398bdb346ac25733b2efa9b3752 (patch)
tree8eaee4af96ecc4fa947e1e04204fa05d1265b5a1 /mm
parent441c228f817f7597e090d84aca74bdb7c2bd5040 (diff)
mm/memcontrol.c: fix defined but not used compiler warning
test_mem_cgroup_node_reclaimable() is used only when MAX_NUMNODES > 1, so move it into the compiler if statement [akpm@linux-foundation.org: clean up layout] Signed-off-by: Michele Curti <michele.curti@gmail.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 998fb1756d43..dac81b975996 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1616,6 +1616,8 @@ static void mem_cgroup_out_of_memory(struct mem_cgroup *memcg, gfp_t gfp_mask,
1616 NULL, "Memory cgroup out of memory"); 1616 NULL, "Memory cgroup out of memory");
1617} 1617}
1618 1618
1619#if MAX_NUMNODES > 1
1620
1619/** 1621/**
1620 * test_mem_cgroup_node_reclaimable 1622 * test_mem_cgroup_node_reclaimable
1621 * @memcg: the target memcg 1623 * @memcg: the target memcg
@@ -1638,7 +1640,6 @@ static bool test_mem_cgroup_node_reclaimable(struct mem_cgroup *memcg,
1638 return false; 1640 return false;
1639 1641
1640} 1642}
1641#if MAX_NUMNODES > 1
1642 1643
1643/* 1644/*
1644 * Always updating the nodemask is not very good - even if we have an empty 1645 * Always updating the nodemask is not very good - even if we have an empty