diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-04 18:30:36 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-05-07 16:05:07 -0400 |
commit | 9ccce5a0fb703bbae425d2f38513e30f62eee282 (patch) | |
tree | 12c712cbfad72ec89edef57a540a0760d6183220 /drivers/md | |
parent | cacddeab563be5850ec12ba6a1396e120f94a529 (diff) | |
download | linux-9ccce5a0fb703bbae425d2f38513e30f62eee282.tar.bz2 |
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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-dust.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-dust.c b/drivers/md/dm-dust.c index e739092bfc65..845f376a72d9 100644 --- a/drivers/md/dm-dust.c +++ b/drivers/md/dm-dust.c @@ -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); } |