From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: [PATCH 13/24] lmb: Prepare to include linux/lmb.h in core file Date: Fri, 26 Mar 2010 15:21:43 -0700 Message-ID: <1269642114-16588-14-git-send-email-yinghai@kernel.org> References: <1269642114-16588-1-git-send-email-yinghai@kernel.org> Return-path: In-Reply-To: <1269642114-16588-1-git-send-email-yinghai@kernel.org> Sender: linux-kernel-owner@vger.kernel.org To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Be Cc: Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu List-Id: linux-arch.vger.kernel.org Need to add protection in linux/lmb.h, to prepare to include it in mm/page_alloc.c and mm/bootmem.c etc. Signed-off-by: Yinghai Lu --- include/linux/lmb.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/lmb.h b/include/linux/lmb.h index 6568e9d..143f97d 100644 --- a/include/linux/lmb.h +++ b/include/linux/lmb.h @@ -2,6 +2,7 @@ #define _LINUX_LMB_H #ifdef __KERNEL__ +#ifdef CONFIG_HAVE_LMB /* * Logical memory blocks. * @@ -102,6 +103,8 @@ u64 lmb_hole_size(u64 start, u64 end); #include +#endif /* CONFIG_HAVE_LMB */ + #endif /* __KERNEL__ */ #endif /* _LINUX_LMB_H */ -- 1.6.4.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcsinet12.oracle.com ([148.87.113.124]:37926 "EHLO rcsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325Ab0CZWYI (ORCPT ); Fri, 26 Mar 2010 18:24:08 -0400 From: Yinghai Lu Subject: [PATCH 13/24] lmb: Prepare to include linux/lmb.h in core file Date: Fri, 26 Mar 2010 15:21:43 -0700 Message-ID: <1269642114-16588-14-git-send-email-yinghai@kernel.org> In-Reply-To: <1269642114-16588-1-git-send-email-yinghai@kernel.org> References: <1269642114-16588-1-git-send-email-yinghai@kernel.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Benjamin Herrenschmidt , Linus Torvalds Cc: Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu Message-ID: <20100326222143.vFvOFTUIkyhUIazy7D7Wnb1shfx3dYKArxB0Kh2_igY@z> Need to add protection in linux/lmb.h, to prepare to include it in mm/page_alloc.c and mm/bootmem.c etc. Signed-off-by: Yinghai Lu --- include/linux/lmb.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/lmb.h b/include/linux/lmb.h index 6568e9d..143f97d 100644 --- a/include/linux/lmb.h +++ b/include/linux/lmb.h @@ -2,6 +2,7 @@ #define _LINUX_LMB_H #ifdef __KERNEL__ +#ifdef CONFIG_HAVE_LMB /* * Logical memory blocks. * @@ -102,6 +103,8 @@ u64 lmb_hole_size(u64 start, u64 end); #include +#endif /* CONFIG_HAVE_LMB */ + #endif /* __KERNEL__ */ #endif /* _LINUX_LMB_H */ -- 1.6.4.2