common: commands: make commands static

Since most commands are not public, make them static. This
prevents warnings that no common prototype is available.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
Jeroen Hofstee
2014-06-23 00:22:08 +02:00
committed by Tom Rini
parent e259d6a320
commit 0e350f81e1
11 changed files with 36 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ void __weak invalidate_icache_all(void)
puts("No arch specific invalidate_icache_all available!\n");
}
int do_icache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
static int do_icache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
switch (argc) {
case 2: /* on / off */
@@ -52,7 +52,7 @@ void __weak flush_dcache_all(void)
/* please define arch specific flush_dcache_all */
}
int do_dcache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
static int do_dcache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
switch (argc) {
case 2: /* on / off */