[U-Boot] [PATCH] lmb: do not export anything without CONFIG_LMB

Mike Frysinger vapier at gentoo.org
Thu Feb 16 07:02:47 CET 2012


Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 include/lmb.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/lmb.h b/include/lmb.h
index 43082a3..5d1f4b6 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -1,6 +1,7 @@
 #ifndef _LINUX_LMB_H
 #define _LINUX_LMB_H
 #ifdef __KERNEL__
+#ifdef CONFIG_LMB
 
 #include <asm/types.h>
 /*
@@ -56,6 +57,7 @@ lmb_size_bytes(struct lmb_region *type, unsigned long region_nr)
 void board_lmb_reserve(struct lmb *lmb);
 void arch_lmb_reserve(struct lmb *lmb);
 
+#endif /* CONFIG_LMB */
 #endif /* __KERNEL__ */
 
 #endif /* _LINUX_LMB_H */
-- 
1.7.8.4



More information about the U-Boot mailing list