Fix sparse warnings: drivers/md/dm-ebs-target.c:423:12: warning: symbol 'dm_ebs_init' was not declared. Should it be static? drivers/md/dm-ebs-target.c:433:6: warning: symbol 'dm_ebs_exit' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> Signed-off-by: Zheng Bin <zhengbin13@xxxxxxxxxx> --- drivers/md/dm-ebs-target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-ebs-target.c b/drivers/md/dm-ebs-target.c index a412647b7acc..19125dd85214 100644 --- a/drivers/md/dm-ebs-target.c +++ b/drivers/md/dm-ebs-target.c @@ -420,7 +420,7 @@ static struct target_type ebs_target = { .iterate_devices = ebs_iterate_devices, }; -int __init dm_ebs_init(void) +static int __init dm_ebs_init(void) { int r = dm_register_target(&ebs_target); @@ -430,7 +430,7 @@ int __init dm_ebs_init(void) return r; } -void dm_ebs_exit(void) +static void dm_ebs_exit(void) { dm_unregister_target(&ebs_target); } -- 2.26.0.106.g9fadedd -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel