From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id ACD716B004A for ; Thu, 11 Nov 2010 14:07:09 -0500 (EST) From: Mel Gorman Subject: [PATCH 2/3] mm,compaction: Add COMPACTION_BUILD Date: Thu, 11 Nov 2010 19:07:03 +0000 Message-Id: <1289502424-12661-3-git-send-email-mel@csn.ul.ie> In-Reply-To: <1289502424-12661-1-git-send-email-mel@csn.ul.ie> References: <1289502424-12661-1-git-send-email-mel@csn.ul.ie> Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: KOSAKI Motohiro , Andrew Morton , Rik van Riel , Johannes Weiner , linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: To avoid #ifdef COMPACTION in a following patch, this patch adds COMPACTION_BUILD that is similar to NUMA_BUILD in operation. Signed-off-by: Mel Gorman --- include/linux/kernel.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 450092c..c00c5d1 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -826,6 +826,13 @@ struct sysinfo { #define NUMA_BUILD 0 #endif +/* This helps us avoid #ifdef CONFIG_COMPACTION */ +#ifdef CONFIG_COMPACTION +#define COMPACTION_BUILD 1 +#else +#define COMPACTION_BUILD 0 +#endif + /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */ #ifdef CONFIG_FTRACE_MCOUNT_RECORD # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD -- 1.7.1 -- 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/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org