]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: add some 'static' annotations
authorEric Biggers <ebiggers@google.com>
Tue, 25 Oct 2016 01:47:14 +0000 (12:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:47:14 +0000 (12:47 +1100)
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 <ebiggers@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_btree.c

index 5d48341a166b899bb3cac0b96ff62048d2216e29..1d41265d806f60674532c7607711b29140cd7942 100644 (file)
@@ -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,