Commit 9ccce5a0 authored by YueHaibing's avatar YueHaibing Committed by Mike Snitzer

dm dust: Make dm_dust_init and dm_dust_exit static

Fix sparse warnings:

drivers/md/dm-dust.c:495:12: warning: symbol 'dm_dust_init' was not declared. Should it be static?
drivers/md/dm-dust.c:505:13: warning: symbol 'dm_dust_exit' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent cacddeab
...@@ -492,7 +492,7 @@ static struct target_type dust_target = { ...@@ -492,7 +492,7 @@ static struct target_type dust_target = {
.prepare_ioctl = dust_prepare_ioctl, .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); int result = dm_register_target(&dust_target);
...@@ -502,7 +502,7 @@ int __init dm_dust_init(void) ...@@ -502,7 +502,7 @@ int __init dm_dust_init(void)
return result; return result;
} }
void __exit dm_dust_exit(void) static void __exit dm_dust_exit(void)
{ {
dm_unregister_target(&dust_target); dm_unregister_target(&dust_target);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment