]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-remove-duplicated-call-of-get_pfn_range_for_nid-v2
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Wed, 19 Jun 2013 00:06:56 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:50 +0000 (17:26 +1000)
It fixes the uninitialized warnings in Arches with no
CONFIG_HAVE_MEMBLOCK_NODE_MAP.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index feffe756a2e38424b0d5619a06fc7616c5e51fb8..c7e2bea5e3decd44f736d1a345598fffcd276b0f 100644 (file)
@@ -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);