From: Zhang Yanfei Date: Wed, 19 Jun 2013 00:06:56 +0000 (+1000) Subject: mm-remove-duplicated-call-of-get_pfn_range_for_nid-v2 X-Git-Tag: next-20130619~2^2~354 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a4548343d2e1b06a573bccecd3f6ae566882a2e5;p=karo-tx-linux.git 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 --- 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);