mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
cmd: blkmap: Make map_handlers[] and its .fn static
These are only used in cmd/blkmap.c. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6efca7feae
commit
42411e068d
1 changed files with 4 additions and 3 deletions
|
@ -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 },
|
||||
|
||||
|
|
Loading…
Reference in a new issue