From 1e85c20d20e276617b437c42d9551266fc3b10bd Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 25 Oct 2016 12:47:14 +1100 Subject: [PATCH] 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 --- libxfs/xfs_btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.2