From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Whitcroft Subject: [PATCH 8/8] mem_map/max_mapnr are specific to the FLATMEM memory model References: <20080410103306.GA29831@shadowen.org> Date: Thu, 10 Apr 2008 11:41:22 +0100 Message-Id: <1207824082.0@pinky> Sender: owner-linux-mm@kvack.org Return-Path: To: Dave Hansen Cc: Jeremy Fitzhardinge , Johannes Weiner , Andy Whitcroft , linux-mm List-ID: mem_map and max_mapnr are variables used in the FLATMEM memory model only. Ensure they are only defined when that memory model is enabled. Signed-off-by: Andy Whitcroft --- mm/memory.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 0d14d1e..091324e 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -61,8 +61,7 @@ #include #include -#ifndef CONFIG_NEED_MULTIPLE_NODES -/* use the per-pgdat data instead for discontigmem - mbligh */ +#ifdef CONFIG_FLATMEM unsigned long max_mapnr; struct page *mem_map; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org