]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memcontrol.c: fix a -Wunused-function warning
authorQian Cai <cai@lca.pw>
Mon, 23 Sep 2019 22:37:19 +0000 (15:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2019 22:54:10 +0000 (15:54 -0700)
commit1e28f122d45e63786a60528a00bd6c1eb5705618
tree67cff80f2db4c575ff65b8a42a03c7f6d7112092
parentd87fd4b7efd1f70ec09cba2d7b6dd919452f2010
mm/memcontrol.c: fix a -Wunused-function warning

mem_cgroup_id_get() was introduced in commit 4d16796051fe ("mm:memcontrol:
fix cgroup creation failure after many small jobs").

Later, it no longer has any user since the commits,

ffb9044b8d47 ("mm: memcontrol: fix swap counter leak on swapout from offline cgroup")
c9b1a3e06403 ("mm: memcontrol: add sanity checks for memcg->id.ref on get/put")

so safe to remove it.

Link: http://lkml.kernel.org/r/1568648453-5482-1-git-send-email-cai@lca.pw
Signed-off-by: Qian Cai <cai@lca.pw>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c