[dm-devel] [RFC PATCH dm] dm: dust_rb_search() can be static
kbuild test robot
lkp at intel.com
Fri Apr 26 23:12:48 UTC 2019
Fixes: cefb8eb074c8 ("dm: add dust target")
Signed-off-by: kbuild test robot <lkp at intel.com>
---
dm-dust.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/md/dm-dust.c b/drivers/md/dm-dust.c
index f5434ada..dd56284 100644
--- a/drivers/md/dm-dust.c
+++ b/drivers/md/dm-dust.c
@@ -32,7 +32,7 @@ struct dust_device {
bool quiet_mode:1;
};
-struct badblock *dust_rb_search(struct rb_root *root, sector_t blk)
+static struct badblock *dust_rb_search(struct rb_root *root, sector_t blk)
{
struct rb_node *node = root->rb_node;
@@ -50,7 +50,7 @@ struct badblock *dust_rb_search(struct rb_root *root, sector_t blk)
return NULL;
}
-bool dust_rb_insert(struct rb_root *root, struct badblock *new)
+static bool dust_rb_insert(struct rb_root *root, struct badblock *new)
{
struct badblock *bblk;
struct rb_node **link = &root->rb_node, *parent = NULL;
@@ -492,7 +492,7 @@ static struct target_type dust_target = {
.prepare_ioctl = dust_prepare_ioctl,
};
-int __init dm_dust_init(void)
+static int __init dm_dust_init(void)
{
int result = dm_register_target(&dust_target);
@@ -502,7 +502,7 @@ int __init dm_dust_init(void)
return result;
}
-void __exit dm_dust_exit(void)
+static void __exit dm_dust_exit(void)
{
dm_unregister_target(&dust_target);
}
More information about the dm-devel
mailing list