diff options
author | Simon Glass <sjg@chromium.org> | 2016-03-13 19:07:27 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-22 12:16:08 -0400 |
commit | 633fb736ce0c7a50cacbf827d1506462d56a9354 (patch) | |
tree | 6ae3c4bd5d2c2fcea979fbe39b07385b4c9eaf6b | |
parent | b8dafa2209adf5edd1037bbd4bdf21a738fb18dc (diff) | |
download | u-boot-imx-633fb736ce0c7a50cacbf827d1506462d56a9354.zip u-boot-imx-633fb736ce0c7a50cacbf827d1506462d56a9354.tar.gz u-boot-imx-633fb736ce0c7a50cacbf827d1506462d56a9354.tar.bz2 |
cbfs: Update a function to be static
All command functions should be static. Update the CBFS functions to follow
this rule.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | cmd/cbfs.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -11,7 +11,8 @@ #include <command.h> #include <cbfs.h> -int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) { uintptr_t end_of_rom = 0xffffffff; char *ep; @@ -44,7 +45,8 @@ U_BOOT_CMD( " CBFS is in. It defaults to 0xFFFFFFFF\n" ); -int do_cbfs_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_cbfs_fsload(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) { const struct cbfs_cachenode *file; unsigned long offset; @@ -90,7 +92,8 @@ U_BOOT_CMD( " - load binary file 'filename' from the cbfs to address 'addr'\n" ); -int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) { const struct cbfs_cachenode *file = file_cbfs_get_first(); int files = 0; @@ -168,7 +171,8 @@ U_BOOT_CMD( " - list the files in the cbfs\n" ); -int do_cbfs_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_cbfs_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) { const struct cbfs_header *header = file_cbfs_get_header(); |