The patch titled Subject: mm/page_alloc: split per cpu page lists and zone stats -fix has been added to the -mm tree. Its filename is mm-page_alloc-split-per-cpu-page-lists-and-zone-stats-fix.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-split-per-cpu-page-lists-and-zone-stats-fix.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-split-per-cpu-page-lists-and-zone-stats-fix.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: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Subject: mm/page_alloc: split per cpu page lists and zone stats -fix mm/ is not W=1 clean for allnoconfig but the patch "mm/page_alloc: Split per cpu page lists and zone stats" makes it worse with the following warning mm/vmstat.c: In function `zoneinfo_show_print': mm/vmstat.c:1698:28: warning: variable `pzstats' set but not used [-Wunused-but-set-variable] struct per_cpu_zonestat *pzstats; ^~~~~~~ This is a fix to the mmotm patch mm-page_alloc-split-per-cpu-page-lists-and-zone-stats.patch. Link: https://lkml.kernel.org/r/20210514144622.GA3735@xxxxxxxxxxxxxxxxxxx Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/vmstat.c~mm-page_alloc-split-per-cpu-page-lists-and-zone-stats-fix +++ a/mm/vmstat.c @@ -1695,10 +1695,9 @@ static void zoneinfo_show_print(struct s seq_printf(m, "\n pagesets"); for_each_online_cpu(i) { struct per_cpu_pages *pcp; - struct per_cpu_zonestat *pzstats; + struct per_cpu_zonestat __maybe_unused *pzstats; pcp = per_cpu_ptr(zone->per_cpu_pageset, i); - pzstats = per_cpu_ptr(zone->per_cpu_zonestats, i); seq_printf(m, "\n cpu: %i" "\n count: %i" @@ -1709,6 +1708,7 @@ static void zoneinfo_show_print(struct s pcp->high, pcp->batch); #ifdef CONFIG_SMP + pzstats = per_cpu_ptr(zone->per_cpu_zonestats, i); seq_printf(m, "\n vm stats threshold: %d", pzstats->stat_threshold); #endif _ Patches currently in -mm which might be from mgorman@xxxxxxxxxxxxxxxxxxx are mm-page_alloc-split-per-cpu-page-lists-and-zone-stats.patch mm-page_alloc-split-per-cpu-page-lists-and-zone-stats-fix.patch mm-page_alloc-convert-per-cpu-list-protection-to-local_lock.patch mm-vmstat-convert-numa-statistics-to-basic-numa-counters.patch mm-vmstat-inline-numa-event-counter-updates.patch mm-page_alloc-batch-the-accounting-updates-in-the-bulk-allocator.patch mm-page_alloc-reduce-duration-that-irqs-are-disabled-for-vm-counters.patch mm-page_alloc-explicitly-acquire-the-zone-lock-in-__free_pages_ok.patch mm-page_alloc-avoid-conflating-irqs-disabled-with-zone-lock.patch mm-page_alloc-update-pgfree-outside-the-zone-lock-in-__free_pages_ok.patch