]> 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>
Thu, 8 Dec 2011 04:42:43 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Dec 2011 04:19:15 +0000 (15:19 +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;