Skip to content
Snippets Groups Projects
Commit 68149e94 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@ti.com>
parent d514544f
No related branches found
No related tags found
No related merge requests found
...@@ -631,6 +631,7 @@ int do_mem_loopw (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -631,6 +631,7 @@ int do_mem_loopw (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
} }
#endif /* CONFIG_LOOPW */ #endif /* CONFIG_LOOPW */
#ifdef CONFIG_CMD_MEMTEST
static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr, static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr,
vu_long *dummy) vu_long *dummy)
{ {
...@@ -910,7 +911,6 @@ static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr, ...@@ -910,7 +911,6 @@ static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr,
return 0; return 0;
} }
#ifdef CONFIG_CMD_MEMTEST
/* /*
* Perform a memory test. A more complete alternative test can be * Perform a memory test. A more complete alternative test can be
* configured using CONFIG_SYS_ALT_MEMTEST. The complete test loops until * configured using CONFIG_SYS_ALT_MEMTEST. The complete test loops until
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment