]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lmb: do not export anything without CONFIG_LMB
authorMike Frysinger <vapier@gentoo.org>
Wed, 15 Feb 2012 20:02:47 +0000 (20:02 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 19 Jun 2012 20:35:10 +0000 (22:35 +0200)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/lmb.h

index 43082a393fded52ec71f4bca686cffef0e1aedf8..5d1f4b624a2695b06e478dd7fcf205508d1a5cc1 100644 (file)
@@ -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 */