From patchwork Sun May 16 14:07:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mel Gorman X-Patchwork-Id: 12260405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DED9C433ED for ; Sun, 16 May 2021 14:07:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 70D4461155 for ; Sun, 16 May 2021 14:07:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70D4461155 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A7E9A6B0070; Sun, 16 May 2021 10:07:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A2DC96B0071; Sun, 16 May 2021 10:07:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8A67E6B0072; Sun, 16 May 2021 10:07:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0159.hostedemail.com [216.40.44.159]) by kanga.kvack.org (Postfix) with ESMTP id 5960F6B0070 for ; Sun, 16 May 2021 10:07:10 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D5D4E8249980 for ; Sun, 16 May 2021 14:07:09 +0000 (UTC) X-FDA: 78147270978.10.FF720D3 Received: from outbound-smtp55.blacknight.com (outbound-smtp55.blacknight.com [46.22.136.239]) by imf09.hostedemail.com (Postfix) with ESMTP id 974EF6000120 for ; Sun, 16 May 2021 14:07:07 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp55.blacknight.com (Postfix) with ESMTPS id ABCA9FB132 for ; Sun, 16 May 2021 15:07:07 +0100 (IST) Received: (qmail 21356 invoked from network); 16 May 2021 14:07:07 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 16 May 2021 14:07:07 -0000 Date: Sun, 16 May 2021 15:07:05 +0100 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 Message-ID: <20210516140705.GB3735@techsingularity.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 974EF6000120 Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of mgorman@techsingularity.net designates 46.22.136.239 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net; dmarc=none X-Rspamd-Server: rspam03 X-Stat-Signature: iajsa5bh8xjrm98yz76cyb1nexu51o6z X-HE-Tag: 1621174027-401748 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 mm-page_alloc-split-per-cpu-page-lists-and-zone-stats.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; +#ifdef CONFIG_NUMA struct per_cpu_pages __percpu *pcp = zone->per_cpu_pageset; +#endif for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) { int v;