Skip to content

Commit

Permalink
dm integrity: make dm_integrity_init and dm_integrity_exit static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Mike Snitzer committed Apr 1, 2019
1 parent 0d74e6a commit 5efedc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/dm-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit 5efedc9

Please sign in to comment.