All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/page_alloc: remove the static for local variable node_order
@ 2020-12-30 11:40 Hui Su
  2020-12-30 12:42 ` Matthew Wilcox
  0 siblings, 1 reply; 9+ messages in thread
From: Hui Su @ 2020-12-30 11:40 UTC (permalink / raw)
  To: Andrew Morton, linux-mm, linux-kernel, Michal Hocko

local variable node_order do not need the static here.

Signed-off-by: Hui Su <sh_def@163.com>
---
 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



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-05  7:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-30 11:40 [PATCH] mm/page_alloc: remove the static for local variable node_order Hui Su
2020-12-30 12:42 ` Matthew Wilcox
2020-12-30 12:59   ` Hui Su
2020-12-30 13:41   ` Muchun Song
2020-12-30 13:41     ` Muchun Song
2021-01-04  8:47     ` Michal Hocko
2021-01-04 23:23   ` Andrew Morton
2021-01-05  1:30     ` Matthew Wilcox
2021-01-05  7:28     ` Michal Hocko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.