Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3646787ybn; Fri, 27 Sep 2019 09:15:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGpAMtWpulqK+pR/n/zvA/F3mISsD14XarN54ugZDqObBn2D1QxTyrRJBTdLGZjwSr9Hj1 X-Received: by 2002:a50:ab84:: with SMTP id u4mr5487491edc.13.1569600921905; Fri, 27 Sep 2019 09:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569600921; cv=none; d=google.com; s=arc-20160816; b=xKc0+5d/9eBHxby5uX+11XzoKg8zE7wSp/RnNo7BGnghvpyQTEbtIGT8aF1cp2TViK OJTrI+5rUT6sUtLR78gdJLVum1uLgjvQ8AQFzGX5RqpoHSQt/9W9STiF6IPJ7HvLKgYg U+owzi2W/C+ra9vFl7Zov68U7wK0Y4c7O7NpuzMr+WtX6U6jMIgpBLauUADakkyvb+Ve HfeBOjrsdUY3TiKcUMT5WbkGBAiyHfrzm5G6On2lMSCdI6q/y1MXsnG2kOKnpFf6+Sr8 OwkPWWm4K3y/eek4cLbIq1XidF7qCXE9yW0UJSIEfEkALJadwyVEe1Lv1J9opFrzKNIO eDrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AaR5OzYbcf+jLy/yyQ0UWIR5YGUMCNa32EYa96X1oJo=; b=pjKY+YK0IIrViWDFMQ0dHmAje/ef92VB41dW/WUXD/ylKB2OK9jqhS3T91iSElvfoe RneYvOX+wHyNHJ0CWsFMIjfG0L5cFfe7FUccQwU3NvzgGtB5PSCCrn+gu9H5F0jfTHbs LnrSefYMNPkPKPcAwxxVbQS4Pu0AwFY5KJM85cVwyABSlhfUwsLjjPuHPTgHY/zGThHk SeD5Ndf7zI+qgG19DVvsolbgfL4GVySQljtbLFgmt/vi9eeelLqO3kyvc9zu/6nz3EgY FeWJPCPgu6RTZKkEsH8KqWXTQwORCsX8aXEjM6nfd9Cf0otAOEIaP3o6o9gKOBjLv7c9 WKng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OU6Xnz2i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si2971665ejd.126.2019.09.27.09.14.56; Fri, 27 Sep 2019 09:15:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OU6Xnz2i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727741AbfI0QO2 (ORCPT + 99 others); Fri, 27 Sep 2019 12:14:28 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38071 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfI0QO1 (ORCPT ); Fri, 27 Sep 2019 12:14:27 -0400 Received: by mail-pf1-f194.google.com with SMTP id h195so1870571pfe.5 for ; Fri, 27 Sep 2019 09:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AaR5OzYbcf+jLy/yyQ0UWIR5YGUMCNa32EYa96X1oJo=; b=OU6Xnz2i+u94fO/4vIXoNMGssGeVRLpSzW0wIhwvEMx8Y60FFwy62xt3kSN3R1HmpE 6u0LIltGp7e8/jYBbLcEFwWU4q/6MYQfBgoictKGKl6DV3wL+8bvdKIR0Y+9p5WNTiCW xg2VL3vFZTH5QZpl3Kb5tICrDZ3uvpcLTaO14gpR/Hk1MP1xqmFviLPirLm3NKM+OIgY SLI0rUruCbcNrJnwlpzmIA0LXYpe3b4I42qHQ2EeXjggkxQDHd27yvIJRVmSpWM96Dd1 HLM2nxjfBBN0jDGNYYVu7IDjrwhaBYiDN6I+/O0fYxs0haDyrMl6DNIPE9r6CYlnG5Yg +4AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AaR5OzYbcf+jLy/yyQ0UWIR5YGUMCNa32EYa96X1oJo=; b=ASKPbTwkw6hxHhR+pQVlMMVIsqBt07fkV2nVFatPsAAg5tyNeZ36jCvj1pZsSDtzzG +ZhQE4yCElnS2Iucw2B2+VKvE0/85wttAkBaSBxsWjuks3dX0qNnnpjcDPcs+D2fYm0+ rdxVAwUca3wU0eH8BghU7Le1smf3EsiaC1nKX3Z7w27s7mrifuwcmQUd39gG1Nzmgkda HxNgaUlpbN2jUJmBJAVc6F3BTV2eHKX4e2NA711HPXsauH/8a4nLYexneR4WR+j1viFm hxe3vVQNfCiTm+TVbVdelN27xVivFGDocsM+xPX+CP3VTsnUbXwSm/GIoCOmgBCimmcK PDsA== X-Gm-Message-State: APjAAAUR33D0Tpmr86OucbJ3iP0nPZarXdDM8okEYX2LN2w0ytxFbaiT 7LuZumZHKfRw0dAp4/3YcpU= X-Received: by 2002:a63:120a:: with SMTP id h10mr9671403pgl.29.1569600866827; Fri, 27 Sep 2019 09:14:26 -0700 (PDT) Received: from Smcdef-MBP.lan ([103.136.220.72]) by smtp.gmail.com with ESMTPSA id s17sm10386912pgg.77.2019.09.27.09.14.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Sep 2019 09:14:26 -0700 (PDT) From: Kaitao Cheng To: akpm@linux-foundation.org Cc: sashal@kernel.org, mhocko@suse.com, osalvador@suse.de, mgorman@techsingularity.net, rppt@linux.ibm.com, dan.j.williams@intel.com, alexander.h.duyck@linux.intel.com, pavel.tatashin@microsoft.com, glider@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kaitao Cheng , Muchun Song Subject: [PATCH] mm, page_alloc: drop pointless static qualifier in build_zonelists() Date: Sat, 28 Sep 2019 00:14:16 +0800 Message-Id: <20190927161416.62293-1-pilgrimtao@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to make the 'node_order' variable static since new value always be assigned before use it. Signed-off-by: Kaitao Cheng Signed-off-by: Muchun Song --- 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 3334a769eb91..c473c304d09f 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5597,7 +5597,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; int local_node, prev_node; -- 2.20.1