提交 f1b8243c 编写于 作者: E Eric Biggers 提交者: Dave Chinner

xfs: add some 'static' annotations

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: NEric Biggers <ebiggers@google.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 1be7f9be
......@@ -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,
......
......@@ -512,13 +512,13 @@ static struct attribute *xfs_error_attrs[] = {
};
struct kobj_type xfs_error_cfg_ktype = {
static struct kobj_type xfs_error_cfg_ktype = {
.release = xfs_sysfs_release,
.sysfs_ops = &xfs_sysfs_ops,
.default_attrs = xfs_error_attrs,
};
struct kobj_type xfs_error_ktype = {
static struct kobj_type xfs_error_ktype = {
.release = xfs_sysfs_release,
.sysfs_ops = &xfs_sysfs_ops,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册