summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-03-12 10:07:19 -0400
committerTom Rini <trini@ti.com>2013-03-12 12:43:31 -0400
commit68149e94053d18b54a63c9a44c87f178f59a169e (patch)
tree3c8a45e081d7ae92533ef88aeb2e4f6806199aa2 /common
parentd514544fe04e1b83ca2f9a1f64b885d153a2d2d5 (diff)
downloadu-boot-68149e94053d18b54a63c9a44c87f178f59a169e.tar.gz
u-boot-68149e94053d18b54a63c9a44c87f178f59a169e.tar.bz2
u-boot-68149e94053d18b54a63c9a44c87f178f59a169e.zip
cmd_mem.c: Fix warning when CONFIG_CMD_MEMTEST is not set
mem_test_quick and mem_test_alt functions are only called by do_mem_mtest, so move them under the #ifdef Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 53572f7645..64dd76a0f5 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -631,6 +631,7 @@ int do_mem_loopw (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
#endif /* CONFIG_LOOPW */
+#ifdef CONFIG_CMD_MEMTEST
static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr,
vu_long *dummy)
{
@@ -910,7 +911,6 @@ static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr,
return 0;
}
-#ifdef CONFIG_CMD_MEMTEST
/*
* Perform a memory test. A more complete alternative test can be
* configured using CONFIG_SYS_ALT_MEMTEST. The complete test loops until