Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10480134pxu; Wed, 30 Dec 2020 04:03:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxubq9TqA+ct8royAiCaWTTnxpkWPTQtG6O7qpbfQhIfdeQOY6QVw+ZzeOelqrIhWZjYmli X-Received: by 2002:a05:6402:d0a:: with SMTP id eb10mr15270870edb.305.1609329818927; Wed, 30 Dec 2020 04:03:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609329818; cv=none; d=google.com; s=arc-20160816; b=jWvI//lHYVBd4tMb+VG0ExLv8eeS0bM55BwouhHNS1U/lCKwWdcn3sooUDJK9bo1s7 Hl5Zpmnf4HZ/c+vK+HT3o+GL281pOYVbjcjSG1c0QtEUoCpCBgwusKbwPNC7NsCkXgmQ mq9Q6J8KRESW/Um8myzXx77NVuwxk+qMc9ykkZhG/LgLZz5QdfhcIWVR9KcObj/iVybD wxIU5AEuxa9CkkBRaUIvl8jHItE7PoxUeSG74EOiWv17t4u6CyLA2qSbZkF0khJKN7FH gP2Mx4464XxKDju+8b8a//y3b46wDQn1soxFUoURsPXbRPrKG21xVEBICFdi0pJOqY1+ J4QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=BVkYWnerAgEAUJ+R498wrhw6J78zN7/yUiGX3c4XnIU=; b=WbzMYN9Caf6CTA+kiRT2NKEYNkQMvay0V2rxULH3krJUWpx6Bs7wTum4Noqud5NA7g JGoMY3EJQthP7js1D5pMd8SNJ6fw4KPIw+a64XuI43bRGWOUdIMKmbJFTQJkALdNi2t+ C260oX1gO2G+pc/oO90hT2DM3x6Q80GlVrST4UtgLcN9pVGyiY52Nl+4p7UXoVMMVSpI vQ603r5r/DqRWDE/EfZ2VOCxY1xJPLzhAcyg1ruOybF8AlRhPZIgcJvCVlRmq+tuODp4 25h3GlO3se78mQps197QZC5B4AUOAsXjvQvi45aVHMzny7x4poe1SNRcFOleOvzlAxPj MJIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UErKyZ3P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si23144925eds.172.2020.12.30.04.03.16; Wed, 30 Dec 2020 04:03:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UErKyZ3P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbgL3L7T (ORCPT + 99 others); Wed, 30 Dec 2020 06:59:19 -0500 Received: from m12-18.163.com ([220.181.12.18]:52326 "EHLO m12-18.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbgL3L7S (ORCPT ); Wed, 30 Dec 2020 06:59:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=BVkYW nerAgEAUJ+R498wrhw6J78zN7/yUiGX3c4XnIU=; b=UErKyZ3PHxYhIjY9642y0 eLXIoInRFI64kRzlWBnEHNKE+ZGvvQ1S0DtvOW+Dgibswv4q+7ijTwjrxHY+r4lr rSpnEz9CSB219xQ3K8y8anUkfIdpi81Zsl+vFedOv8gmVMUv+PuSCueArt7Bdmfe 6ORaRVR6Lg3dc50YR9hmvc= Received: from localhost (unknown [101.86.213.121]) by smtp14 (Coremail) with SMTP id EsCowADnzRIeZ+xfAGxCMg--.51347S2; Wed, 30 Dec 2020 19:40:15 +0800 (CST) Date: Wed, 30 Dec 2020 19:40:14 +0800 From: Hui Su To: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko Subject: [PATCH] mm/page_alloc: remove the static for local variable node_order Message-ID: <20201230114014.GA1934427@ubuntu-A520I-AC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CM-TRANSID: EsCowADnzRIeZ+xfAGxCMg--.51347S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrJw4DXFWUAr4kZw1fAr43Wrg_yoWxXwcEvF 1xJrsrCrWYy3409w4UA3WxX34fKw18CF4kKw1ak3Waya4UJr4Ivr4kG3ZxJFWDZ3y3Ary3 GasrXrWDKw129jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0Hlk7UUUUU== X-Originating-IP: [101.86.213.121] X-CM-SenderInfo: xvkbvvri6rljoofrz/xtbBDh8LX1rbLxzTawAAsP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org local variable node_order do not need the static here. Signed-off-by: Hui Su --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index bdbec4c98173..45e049ccf117 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5864,7 +5864,7 @@ static void build_thisnode_zonelists(pg_data_t *pgdat) static void build_zonelists(pg_data_t *pgdat) { - static int node_order[MAX_NUMNODES]; + int node_order[MAX_NUMNODES]; int node, load, nr_nodes = 0; nodemask_t used_mask = NODE_MASK_NONE; int local_node, prev_node; -- 2.25.1