Prev: [PATCH 15/37] x86, lmb: Add lmb_find_area_node()
Next: [PATCH 10/37] x86, lmb: Add lmb_to_bootmem()
From: Yinghai Lu on 14 May 2010 15:50 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 <yinghai(a)kernel.org> --- 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 d959d23..4c9c84a 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. * @@ -143,6 +144,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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [PATCH 15/37] x86, lmb: Add lmb_find_area_node() Next: [PATCH 10/37] x86, lmb: Add lmb_to_bootmem() |