From: Michael Jones Date: Thu, 14 Jul 2011 23:09:44 +0000 (+0000) Subject: mv_common.c: don't compile reset_environment if ENV_IS_NOWHERE X-Git-Tag: v2011.09-rc1~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12b5723b3e599857812abfeeb2c241c700274542;p=u-boot mv_common.c: don't compile reset_environment if ENV_IS_NOWHERE Doesn't make sense to provide this function to boards which defined CONFIG_ENV_IS_NOWHERE. Such a board gets a linking error because common/env_nowhere.c doesn't define saveenv(). Signed-off-by: Michael Jones Acked-by: Mike Frysinger --- diff --git a/board/matrix_vision/common/mv_common.c b/board/matrix_vision/common/mv_common.c index 0afc535415..404c8b41c0 100644 --- a/board/matrix_vision/common/mv_common.c +++ b/board/matrix_vision/common/mv_common.c @@ -38,6 +38,7 @@ static char* entries_to_keep[] = { #define MV_MAX_ENV_ENTRY_LENGTH 64 #define MV_KEEP_ENTRIES ARRAY_SIZE(entries_to_keep) +#ifndef CONFIG_ENV_IS_NOWHERE void mv_reset_environment(void) { int i; @@ -67,6 +68,7 @@ void mv_reset_environment(void) saveenv(); } +#endif int mv_load_fpga(void) {