]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
md-cluster: make function cluster_check_sync_size static
authorColin Ian King <colin.king@canonical.com>
Tue, 3 Oct 2017 09:51:17 +0000 (10:51 +0100)
committerShaohua Li <shli@fb.com>
Tue, 17 Oct 2017 02:06:35 +0000 (19:06 -0700)
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>
drivers/md/md-cluster.c

index 03082e17c65cc87af2a44a8020bda6cbdb8b0262..bf41492a2cb0ca3b62d41233d050cb770bb1d228 100644 (file)
@@ -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;