aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/xfs_sysfs.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2016-10-20 15:42:30 +1100
committerDave Chinner <david@fromorbit.com>2016-10-20 15:42:30 +1100
commitf1b8243c55ca6fd2a3898e2f586b8cfcfff684bb (patch)
tree529ffa6991ebfa7690333db7ad5fdd20a84c21e0 /fs/xfs/xfs_sysfs.c
parentxfs: Fix uninitialized variable in xfs_reflink_reserve_cow_range() (diff)
downloadwireguard-linux-f1b8243c55ca6fd2a3898e2f586b8cfcfff684bb.tar.xz
wireguard-linux-f1b8243c55ca6fd2a3898e2f586b8cfcfff684bb.zip
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: Eric Biggers <ebiggers@google.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_sysfs.c')
-rw-r--r--fs/xfs/xfs_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_sysfs.c b/fs/xfs/xfs_sysfs.c
index 5f8d55d29a11..276d3023d60f 100644
--- a/fs/xfs/xfs_sysfs.c
+++ b/fs/xfs/xfs_sysfs.c
@@ -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,
};