cmd_mem.c: Fix warning when CONFIG_CMD_MEMTEST is not set
authorTom Rini <trini@ti.com>
Tue, 12 Mar 2013 14:07:19 +0000 (10:07 -0400)
committerChanho Park <chanho61.park@samsung.com>
Mon, 27 Jul 2015 01:22:09 +0000 (10:22 +0900)
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>
common/cmd_mem.c

index 141f2a04d63625a6409c86c9b711f4e84711cbf3..d6e542c3c9758692123f0a10d91f0f2f4580c36b 100644 (file)
@@ -629,6 +629,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)
 {
@@ -908,7 +909,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