]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
blk: blkmap: Make bind/unbind routines static
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:37 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:25:48 +0000 (16:25 -0400)
These 2 are only used in drivers/block/blkmap.c.

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

index 409aa46de24023b6a36c49074570f574aa696206..f6acfa892768674243b1e4a854c2f72d98ef6703 100644 (file)
@@ -383,7 +383,7 @@ U_BOOT_DRIVER(blkmap_blk) = {
        .ops            = &blkmap_blk_ops,
 };
 
-int blkmap_dev_bind(struct udevice *dev)
+static int blkmap_dev_bind(struct udevice *dev)
 {
        struct blkmap *bm = dev_get_plat(dev);
        struct blk_desc *bd;
@@ -410,7 +410,7 @@ int blkmap_dev_bind(struct udevice *dev)
        return 0;
 }
 
-int blkmap_dev_unbind(struct udevice *dev)
+static int blkmap_dev_unbind(struct udevice *dev)
 {
        struct blkmap *bm = dev_get_plat(dev);
        struct blkmap_slice *bms, *tmp;