]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm: memcg: remove unused node/section info from pc->flags fix
authorHugh Dickins <hughd@google.com>
Fri, 2 Dec 2011 03:13:03 +0000 (14:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 04:05:46 +0000 (15:05 +1100)
Fix non-CONFIG_SPARSEMEM build, which failed with
mm/page_cgroup.c: In function `alloc_node_page_cgroup':
mm/page_cgroup.c:44: error: `start_pfn' undeclared (first use in this function)

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_cgroup.c

index a14655d4d7e4e3b2617fbf7de783403eeb79d8b1..f0559e049e002e48eda0160c41a71abc18a95460 100644 (file)
@@ -41,9 +41,7 @@ static int __init alloc_node_page_cgroup(int nid)
        unsigned long table_size;
        unsigned long nr_pages;
 
-       start_pfn = NODE_DATA(nid)->node_start_pfn;
        nr_pages = NODE_DATA(nid)->node_spanned_pages;
-
        if (!nr_pages)
                return 0;