From e4c2607effc97a1758ce5ba5ac5152d7c5fb0520 Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Fri, 16 Dec 2011 15:50:34 +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