archive mirror
 help / color / mirror / Atom feed
From: Mel Gorman <>
To: Andrew Morton <>
Cc: Chuck Lever <>,
	Jesper Dangaard Brouer <>,
	Thomas Gleixner <>,
	Sebastian Andrzej Siewior <>,
	Peter Zijlstra <>,
	Ingo Molnar <>, Michal Hocko <>,
	Vlastimil Babka <>, Linux-MM <>,
	Linux-RT-Users <>,
	LKML <>
Subject: [PATCH] mm/page_alloc: Split per cpu page lists and zone stats -fix -fix
Date: Sun, 16 May 2021 15:07:05 +0100	[thread overview]
Message-ID: <> (raw)

mm/ is not W=1 clean for make allnoconfig but this patch accidentally
made it worse for i386 with the warning

  mm/vmstat.c: In function ‘refresh_cpu_vm_stats’:
  mm/vmstat.c:785:34: warning: unused variable ‘pcp’ [-Wunused-variable]
     struct per_cpu_pages __percpu *pcp = zone->per_cpu_pageset;

This is a second fix to the mmotm patch

Signed-off-by: Mel Gorman <>
 mm/vmstat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/vmstat.c b/mm/vmstat.c
index a2c3f58253be..f1400ba46beb 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -782,7 +782,9 @@ static int refresh_cpu_vm_stats(bool do_pagesets)
 	for_each_populated_zone(zone) {
 		struct per_cpu_zonestat __percpu *pzstats = zone->per_cpu_zonestats;
 		struct per_cpu_pages __percpu *pcp = zone->per_cpu_pageset;
 		for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) {
 			int v;

                 reply	other threads:[~2021-05-16 14:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] mm/page_alloc: Split per cpu page lists and zone stats -fix -fix' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox