summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-integrity.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-22 22:16:34 +0800
committerMike Snitzer <snitzer@redhat.com>2019-04-01 16:16:36 -0400
commit5efedc9b62b5cf0ccc84ed427a07f0d2485091c4 (patch)
treeb37c2c3030f832061a839cc63c13ca1c4b06483e /drivers/md/dm-integrity.c
parent0d74e6a3b6421d98eeafbed26f29156d469bc0b5 (diff)
downloadlinux-stable-5efedc9b62b5cf0ccc84ed427a07f0d2485091c4.tar.gz
linux-stable-5efedc9b62b5cf0ccc84ed427a07f0d2485091c4.tar.bz2
linux-stable-5efedc9b62b5cf0ccc84ed427a07f0d2485091c4.zip
dm integrity: make dm_integrity_init and dm_integrity_exit static
Fix sparse warnings: drivers/md/dm-integrity.c:3619:12: warning: symbol 'dm_integrity_init' was not declared. Should it be static? drivers/md/dm-integrity.c:3638:6: warning: symbol 'dm_integrity_exit' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r--drivers/md/dm-integrity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c
index 33fac437569f..94b865c5ce71 100644
--- a/drivers/md/dm-integrity.c
+++ b/drivers/md/dm-integrity.c
@@ -3616,7 +3616,7 @@ static struct target_type integrity_target = {
.io_hints = dm_integrity_io_hints,
};
-int __init dm_integrity_init(void)
+static int __init dm_integrity_init(void)
{
int r;
@@ -3635,7 +3635,7 @@ int __init dm_integrity_init(void)
return r;
}
-void dm_integrity_exit(void)
+static void __exit dm_integrity_exit(void)
{
dm_unregister_target(&integrity_target);
kmem_cache_destroy(journal_io_cache);