The patch titled Subject: memcg: cleanup with !CONFIG_MEMCG_V1 has been added to the -mm mm-unstable branch. Its filename is memcg-cleanup-with-config_memcg_v1.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/memcg-cleanup-with-config_memcg_v1.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Michal Koutný <mkoutny@xxxxxxxx> Subject: memcg: cleanup with !CONFIG_MEMCG_V1 Date: Mon, 9 Sep 2024 18:32:20 +0200 Patch series "Followups to controllers' v1 compilation". The group of patches builds upon recent dissection of memory and cpuset controller v1 code to under a separate configuration option. The goal of them patches is to produce behavior that appears to v1 controlelr users same like if the controller wasn't compiled at all (and no change to v2 users). Plus there are two preceding patches with cleanups I came across when looking at the new code. This patch (of 4): Extern declarations have no definitions with !CONFIG_MEMCG_V1 and no users, drop them altogether. Link: https://lkml.kernel.org/r/20240909163223.3693529-1-mkoutny@xxxxxxxx Link: https://lkml.kernel.org/r/20240909163223.3693529-2-mkoutny@xxxxxxxx Signed-off-by: Michal Koutný <mkoutny@xxxxxxxx> Acked-by: Shakeel Butt <shakeel.butt@xxxxxxxxx> Cc: Chen Ridong <chenridong@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Muchun Song <muchun.song@xxxxxxxxx> Cc: Roman Gushchin <roman.gushchin@xxxxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Cc: Zefan Li <lizefan.x@xxxxxxxxxxxxx> Cc: Waiman Long <longman@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol-v1.h | 2 -- 1 file changed, 2 deletions(-) --- a/mm/memcontrol-v1.h~memcg-cleanup-with-config_memcg_v1 +++ a/mm/memcontrol-v1.h @@ -154,8 +154,6 @@ static inline bool memcg1_charge_skmem(s gfp_t gfp_mask) { return true; } static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) {} -extern struct cftype memsw_files[]; -extern struct cftype mem_cgroup_legacy_files[]; #endif /* CONFIG_MEMCG_V1 */ #endif /* __MM_MEMCONTROL_V1_H */ _ Patches currently in -mm which might be from mkoutny@xxxxxxxx are memcg-cleanup-with-config_memcg_v1.patch cgroup-cpuset-expose-cpuset-filesystem-with-cpuset-v1-only.patch cgroup-disallow-mounting-v1-hierarchies-without-controller-implementation.patch cgroup-do-not-report-unavailable-v1-controllers-in-proc-cgroups.patch