diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-06-23 00:22:08 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-18 17:53:23 -0400 |
commit | 0e350f81e1ca7d103fd9685725f9c4b0d9e80632 (patch) | |
tree | 05af9f8bb5f3a0c4cc03c7624880d6ee7927b93c /common/cmd_ext2.c | |
parent | e259d6a320d0280f02966b8bc35316fb136c5e24 (diff) |
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>
Diffstat (limited to 'common/cmd_ext2.c')
-rw-r--r-- | common/cmd_ext2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index 5a4bcc1a36..9e82f49da7 100644 --- a/common/cmd_ext2.c +++ b/common/cmd_ext2.c @@ -22,7 +22,7 @@ */ #include <fs.h> -int do_ext2ls (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_ext2ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT); } @@ -30,7 +30,7 @@ int do_ext2ls (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) /****************************************************************************** * Ext2fs boot command intepreter. Derived from diskboot */ -int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT); } @@ -40,7 +40,7 @@ U_BOOT_CMD( "list files in a directory (default /)", "<interface> <dev[:part]> [directory]\n" " - list files from 'dev' on 'interface' in a 'directory'" -); +) U_BOOT_CMD( ext2load, 6, 0, do_ext2load, @@ -48,4 +48,4 @@ U_BOOT_CMD( "<interface> <dev[:part]> [addr] [filename] [bytes]\n" " - load binary file 'filename' from 'dev' on 'interface'\n" " to address 'addr' from ext2 filesystem." -); +) |