From: Simon Glass Date: Mon, 14 Mar 2016 01:07:27 +0000 (-0600) Subject: cbfs: Update a function to be static X-Git-Tag: v2016.05-rc1~228 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=633fb736ce0c7a50cacbf827d1506462d56a9354;p=u-boot 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 Reviewed-by: Tom Rini --- diff --git a/cmd/cbfs.c b/cmd/cbfs.c index 779e9c043b..95a11a3616 100644 --- a/cmd/cbfs.c +++ b/cmd/cbfs.c @@ -11,7 +11,8 @@ #include #include -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();