From: Colin Ian King Date: Thu, 30 Nov 2017 12:14:47 +0000 (+0000) Subject: btrfs: make function update_share_count static X-Git-Tag: v4.19~1424^2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccc8dc758da0deeddaec2d8a37524401654e99de;p=platform%2Fkernel%2Flinux-rpi.git btrfs: make function update_share_count static 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 7d0dc10..e4054e5 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -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;