summaryrefslogtreecommitdiff
path: root/drivers/md/md-cluster.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-03 12:51:17 +0300
committerShaohua Li <shli@fb.com>2017-10-17 05:06:35 +0300
commit7a57157aeb157cd02ccdcff237bbf63440035b07 (patch)
tree33af0075accc7f8c4c711ed5a99a5550a8dd563c /drivers/md/md-cluster.c
parent07719ff767dcd8cc42050f185d332052f3816546 (diff)
downloadlinux-7a57157aeb157cd02ccdcff237bbf63440035b07.tar.xz
md-cluster: make function cluster_check_sync_size static
The function cluster_check_sync_size is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'cluster_check_sync_size' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md-cluster.c')
-rw-r--r--drivers/md/md-cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
index 03082e17c65c..bf41492a2cb0 100644
--- a/drivers/md/md-cluster.c
+++ b/drivers/md/md-cluster.c
@@ -1094,7 +1094,7 @@ static void metadata_update_cancel(struct mddev *mddev)
/*
* return 0 if all the bitmaps have the same sync_size
*/
-int cluster_check_sync_size(struct mddev *mddev)
+static int cluster_check_sync_size(struct mddev *mddev)
{
int i, rv;
bitmap_super_t *sb;