]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: blkmap: Make map_handlers[] and its .fn static
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:38 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:25:48 +0000 (16:25 -0400)
These are only used in cmd/blkmap.c.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/blkmap.c

index b34c0130728460fdaf1f63a60b12c3d5e14a293c..ef74ebc0036ce8b3d2314eedf491ce03b1aca42f 100644 (file)
@@ -25,7 +25,8 @@ struct map_handler {
        map_parser_fn fn;
 };
 
-int do_blkmap_map_linear(struct map_ctx *ctx, int argc, char *const argv[])
+static int do_blkmap_map_linear(struct map_ctx *ctx, int argc,
+                               char *const argv[])
 {
        struct blk_desc *lbd;
        int err, ldevnum;
@@ -58,7 +59,7 @@ int do_blkmap_map_linear(struct map_ctx *ctx, int argc, char *const argv[])
        return CMD_RET_SUCCESS;
 }
 
-int do_blkmap_map_mem(struct map_ctx *ctx, int argc, char *const argv[])
+static int do_blkmap_map_mem(struct map_ctx *ctx, int argc, char *const argv[])
 {
        phys_addr_t addr;
        int err;
@@ -80,7 +81,7 @@ int do_blkmap_map_mem(struct map_ctx *ctx, int argc, char *const argv[])
        return CMD_RET_SUCCESS;
 }
 
-struct map_handler map_handlers[] = {
+static struct map_handler map_handlers[] = {
        { .name = "linear", .fn = do_blkmap_map_linear },
        { .name = "mem", .fn = do_blkmap_map_mem },