From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458Ab0ENAXP (ORCPT ); Thu, 13 May 2010 20:23:15 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:52090 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753374Ab0ENAXL (ORCPT ); Thu, 13 May 2010 20:23:11 -0400 From: Yinghai Lu To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton Cc: David Miller , Benjamin Herrenschmidt , Linus Torvalds , Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu Subject: [PATCH 02/35] lmb: Prepare to include linux/lmb.h in core file Date: Thu, 13 May 2010 17:19:23 -0700 Message-Id: <1273796396-29649-3-git-send-email-yinghai@kernel.org> X-Mailer: git-send-email 1.6.4.2 In-Reply-To: <1273796396-29649-1-git-send-email-yinghai@kernel.org> References: <1273796396-29649-1-git-send-email-yinghai@kernel.org> X-Auth-Type: Internal IP X-Source-IP: rcsinet15.oracle.com [148.87.113.117] X-CT-RefId: str=0001.0A090204.4BEC97AE.0034,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 7987766..2b87641 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. * @@ -144,6 +145,8 @@ static inline unsigned long lmb_region_pages(const struct lmb_region *reg) region++) +#endif /* CONFIG_HAVE_LMB */ + #endif /* __KERNEL__ */ #endif /* _LINUX_LMB_H */ -- 1.6.4.2