The patch titled Subject: memcg-v1-no-need-for-memcg-locking-for-mglru-fix has been added to the -mm mm-unstable branch. Its filename is memcg-v1-no-need-for-memcg-locking-for-mglru-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/memcg-v1-no-need-for-memcg-locking-for-mglru-fix.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: memcg-v1-no-need-for-memcg-locking-for-mglru-fix Date: Fri Oct 25 06:28:06 PM PDT 2024 remove now-unused local: mm/vmscan.c: In function 'walk_mm': mm/vmscan.c:3652:28: error: unused variable 'memcg' [-Werror=unused-variable] 3652 | struct mem_cgroup *memcg = lruvec_memcg(lruvec); | ^~~~~ Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Muchun Song <muchun.song@xxxxxxxxx> Cc: Roman Gushchin <roman.gushchin@xxxxxxxxx> Cc: Shakeel Butt <shakeel.butt@xxxxxxxxx> Cc: Yosry Ahmed <yosryahmed@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 2 -- 1 file changed, 2 deletions(-) --- a/mm/vmscan.c~memcg-v1-no-need-for-memcg-locking-for-mglru-fix +++ a/mm/vmscan.c @@ -3646,10 +3646,8 @@ static void walk_mm(struct mm_struct *mm .p4d_entry = walk_pud_range, .walk_lock = PGWALK_RDLOCK, }; - int err; struct lruvec *lruvec = walk->lruvec; - struct mem_cgroup *memcg = lruvec_memcg(lruvec); walk->next_addr = FIRST_USER_ADDRESS; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-consolidate-common-checks-in-hugetlb_get_unmapped_area-fix.patch mm-memoryc-remove-stray-newline-at-top-of-file.patch bootmem-stop-using-page-index-fix.patch mm-kasan-kmsan-copy_from-to_kernel_nofault-fix.patch tools-mm-free-the-allocated-memory-fix.patch memcg-v1-no-need-for-memcg-locking-for-mglru-fix.patch