btrfs: make function update_share_count static
authorColin Ian King <colin.king@canonical.com>
Thu, 30 Nov 2017 12:14:47 +0000 (12:14 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:14 +0000 (16:08 +0100)
The function update_share_count is local to the source and does
not need to be in global scope, so make it static.

Cleans up sparse warning:
fs/btrfs/backref.c:219:6: warning: symbol 'update_share_count' was not
declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c

index 7d0dc100a09a816f3c1aec7089ebc7de98339114..e4054e533f6d4d26b783540657d2ea9b78bb97cc 100644 (file)
@@ -216,7 +216,8 @@ static int prelim_ref_compare(struct prelim_ref *ref1,
        return 0;
 }
 
-void update_share_count(struct share_check *sc, int oldcount, int newcount)
+static void update_share_count(struct share_check *sc, int oldcount,
+                              int newcount)
 {
        if ((!sc) || (oldcount == 0 && newcount < 1))
                return;