From c81c9d14173ab4767e90074902d36f25109685c6 Mon Sep 17 00:00:00 2001 From: Zhang Yanfei Date: Fri, 28 Jun 2013 09:52:25 +1000 Subject: [PATCH] mm-remove-duplicated-call-of-get_pfn_range_for_nid-v2 It fixes the uninitialized warnings in Arches with no CONFIG_HAVE_MEMBLOCK_NODE_MAP. Signed-off-by: Zhang Yanfei Cc: Michal Hocko Cc: Wu Fengguang Signed-off-by: Andrew Morton --- 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 feffe756a2e3..c7e2bea5e3de 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4793,7 +4793,7 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size, unsigned long node_start_pfn, unsigned long *zholes_size) { pg_data_t *pgdat = NODE_DATA(nid); - unsigned long start_pfn, end_pfn; + unsigned long start_pfn = 0, end_pfn = 0; /* pg_data_t should be reset to zero when it's allocated */ WARN_ON(pgdat->nr_zones || pgdat->classzone_idx); -- 2.39.5