From 5864c2a44167cee7206a38270e22e582dbc1048d Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Wed, 30 Nov 2011 15:11:57 +1100 Subject: [PATCH] mm: memcg: remove unused node/section info from pc->flags fix 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 Acked-by: KAMEZAWA Hiroyuki Cc: Johannes Weiner Cc: Michal Hocko Cc: Kirill A. Shutemov Signed-off-by: Andrew Morton --- mm/page_cgroup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c index a14655d4d7e4..f0559e049e00 100644 --- a/mm/page_cgroup.c +++ b/mm/page_cgroup.c @@ -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; -- 2.39.5