From: Eric Biggers Date: Tue, 25 Oct 2016 01:47:14 +0000 (+1100) Subject: xfs: add some 'static' annotations X-Git-Tag: v4.9.0-rc1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e85c20d20e276617b437c42d9551266fc3b10bd;p=thirdparty%2Fxfsprogs-dev.git xfs: add some 'static' annotations Source kernel commit: f1b8243c55ca6fd2a3898e2f586b8cfcfff684bb sparse reported that several variables and a function were not forward-declared anywhere and therefore should be 'static'. Found with sparse by running 'make C=2 CF=-D__CHECK_ENDIAN__ fs/xfs/' Signed-off-by: Eric Biggers Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/libxfs/xfs_btree.c b/libxfs/xfs_btree.c index 5d48341a1..1d41265d8 100644 --- a/libxfs/xfs_btree.c +++ b/libxfs/xfs_btree.c @@ -4826,7 +4826,7 @@ xfs_btree_calc_size( return rval; } -int +static int xfs_btree_count_blocks_helper( struct xfs_btree_cur *cur, int level,