From: Colin Ian King Date: Tue, 3 Oct 2017 09:51:17 +0000 (+0100) Subject: md-cluster: make function cluster_check_sync_size static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7a57157aeb157cd02ccdcff237bbf63440035b07;p=linux.git 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 Signed-off-by: Shaohua Li --- diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 03082e17c65cc..bf41492a2cb0c 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;