mm/memcontrol.c: remove unused mem_cgroup_lru_names_not_uptodate()
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 13 Dec 2014 00:56:41 +0000 (16:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:49 +0000 (12:42 -0800)
commit70bc068c4f94e42b79de8f80d0aa560bc6daedec
tree69540286d77a02fee765b781fcda4a4693756222
parent8135be5a8012f4c7e95218563855e16c09a8271b
mm/memcontrol.c: remove unused mem_cgroup_lru_names_not_uptodate()

Remove unused mem_cgroup_lru_names_not_uptodate() and move BUILD_BUG_ON()
to the beginning of memcg_stat_show().

This was partially found by using a static code analysis program called
cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c