summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2013-11-14 16:53:29 +0800
committerRobin Gong <b38343@freescale.com>2013-11-14 17:44:45 +0800
commit466cb7451c75e405db4af07106cc707cbb62b1f5 (patch)
tree5d99c8db1eda2166f850e0de1e531bc4dcc8c74a /common/main.c
parent15ecf2d35389137fbae090672a095825bc4d57e1 (diff)
downloadu-boot-imx-466cb7451c75e405db4af07106cc707cbb62b1f5.zip
u-boot-imx-466cb7451c75e405db4af07106cc707cbb62b1f5.tar.gz
u-boot-imx-466cb7451c75e405db4af07106cc707cbb62b1f5.tar.bz2
ENGR00288025 imx6: fix build warnings
Fix below two warning: soc.c: In function 'check_1_2G': soc.c:488:2: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] main.c: In function 'main_loop': main.c:444:3: warning: implicit declaration of function 'set_default_env' [-Wimplicit-function-declaration] set_default_env("Use default environment for mfgtools\n"); Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index 94b3fa3..145ded1 100644
--- a/common/main.c
+++ b/common/main.c
@@ -49,6 +49,10 @@
#include <fdt_support.h>
#endif /* CONFIG_OF_LIBFDT */
+#ifdef is_boot_from_usb
+#include <environment.h>
+#endif
+
#include <post.h>
#include <linux/ctype.h>
#include <menu.h>