From: Hugh Dickins Date: Fri, 16 Dec 2011 04:50:34 +0000 (+1100) Subject: mm: memcg: remove unused node/section info from pc->flags fix X-Git-Tag: next-20111221~2^2~55 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e4c2607effc97a1758ce5ba5ac5152d7c5fb0520;p=karo-tx-linux.git 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 --- 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;