Skip to content

Commit 42411e0

Browse files
lbmengtrini
authored andcommitted
cmd: blkmap: Make map_handlers[] and its .fn static
These are only used in cmd/blkmap.c. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Simon Glass <[email protected]>
1 parent 6efca7f commit 42411e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/blkmap.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ struct map_handler {
2525
map_parser_fn fn;
2626
};
2727

28-
int do_blkmap_map_linear(struct map_ctx *ctx, int argc, char *const argv[])
28+
static int do_blkmap_map_linear(struct map_ctx *ctx, int argc,
29+
char *const argv[])
2930
{
3031
struct blk_desc *lbd;
3132
int err, ldevnum;
@@ -58,7 +59,7 @@ int do_blkmap_map_linear(struct map_ctx *ctx, int argc, char *const argv[])
5859
return CMD_RET_SUCCESS;
5960
}
6061

61-
int do_blkmap_map_mem(struct map_ctx *ctx, int argc, char *const argv[])
62+
static int do_blkmap_map_mem(struct map_ctx *ctx, int argc, char *const argv[])
6263
{
6364
phys_addr_t addr;
6465
int err;
@@ -80,7 +81,7 @@ int do_blkmap_map_mem(struct map_ctx *ctx, int argc, char *const argv[])
8081
return CMD_RET_SUCCESS;
8182
}
8283

83-
struct map_handler map_handlers[] = {
84+
static struct map_handler map_handlers[] = {
8485
{ .name = "linear", .fn = do_blkmap_map_linear },
8586
{ .name = "mem", .fn = do_blkmap_map_mem },
8687

0 commit comments

Comments
 (0)