The patch titled Subject: mm/memcontrol.c: fix a -Wunused-function warning has been added to the -mm tree. Its filename is mm-memcontrol-fix-a-wunused-function-warning.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-memcontrol-fix-a-wunused-function-warning.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-memcontrol-fix-a-wunused-function-warning.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Qian Cai <cai@xxxxxx> Subject: mm/memcontrol.c: fix a -Wunused-function warning mem_cgroup_id_get() was introduced in commit 73f576c04b94 ("mm:memcontrol: fix cgroup creation failure after many small jobs"). Later, it no longer has any user since the commits, 1f47b61fb407 ("mm: memcontrol: fix swap counter leak on swapout from offline cgroup") 58fa2a5512d9 ("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@xxxxxx Signed-off-by: Qian Cai <cai@xxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Vladimir Davydov <vdavydov.dev@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 5 ----- 1 file changed, 5 deletions(-) --- a/mm/memcontrol.c~mm-memcontrol-fix-a-wunused-function-warning +++ a/mm/memcontrol.c @@ -4940,11 +4940,6 @@ static void mem_cgroup_id_put_many(struc } } -static inline void mem_cgroup_id_get(struct mem_cgroup *memcg) -{ - mem_cgroup_id_get_many(memcg, 1); -} - static inline void mem_cgroup_id_put(struct mem_cgroup *memcg) { mem_cgroup_id_put_many(memcg, 1); _ Patches currently in -mm which might be from cai@xxxxxx are mm-slub-fix-wunused-function-compiler-warnings.patch mm-kmemleak-record-the-current-memory-pool-size.patch mm-kmemleak-increase-the-max-mem-pool-to-1m.patch mm-silence-woverride-init-initializer-overrides.patch mm-memcontrol-fix-a-wunused-function-warning.patch mm-zsmalloc-fix-a-wunused-function-warning.patch writeback-fix-wstringop-truncation-warnings.patch