path: root/fs/seq_file.c
diff options
authorArnd Bergmann <>2016-08-25 15:17:08 -0700
committerLinus Torvalds <>2016-08-26 17:39:35 -0700
commit358c07fcc3b60ab08d77f1684de8bd81bcf49a1a (patch)
tree44aff5d640270a9a77957c340773a3c90fd399fe /fs/seq_file.c
parentb32eaf71db6085f2ba54cf3ddf688bfc858219d0 (diff)
mm: memcontrol: avoid unused function warning
A bugfix in v4.8-rc2 introduced a harmless warning when CONFIG_MEMCG_SWAP is disabled but CONFIG_MEMCG is enabled: mm/memcontrol.c:4085:27: error: 'mem_cgroup_id_get_online' defined but not used [-Werror=unused-function] static struct mem_cgroup *mem_cgroup_id_get_online(struct mem_cgroup *memcg) This moves the function inside of the #ifdef block that hides the calling function, to avoid the warning. Fixes: 1f47b61fb407 ("mm: memcontrol: fix swap counter leak on swapout from offline cgroup") Link: Signed-off-by: Arnd Bergmann <> Acked-by: Michal Hocko <> Acked-by: Vladimir Davydov <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'fs/seq_file.c')
0 files changed, 0 insertions, 0 deletions