diff options
-rw-r--r-- | fs/btrfs/sysfs.c | 2 | ||||
-rw-r--r-- | fs/btrfs/sysfs.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index d982730265b9..bc82ab66ba8f 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c | |||
@@ -395,7 +395,7 @@ static void space_info_release(struct kobject *kobj) | |||
395 | kfree(sinfo); | 395 | kfree(sinfo); |
396 | } | 396 | } |
397 | 397 | ||
398 | struct kobj_type space_info_ktype = { | 398 | static struct kobj_type space_info_ktype = { |
399 | .sysfs_ops = &kobj_sysfs_ops, | 399 | .sysfs_ops = &kobj_sysfs_ops, |
400 | .release = space_info_release, | 400 | .release = space_info_release, |
401 | .default_groups = space_info_groups, | 401 | .default_groups = space_info_groups, |
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index 6baf9ff0519b..0c06f2adfae8 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h | |||
@@ -79,7 +79,6 @@ attr_to_btrfs_feature_attr(struct attribute *attr) | |||
79 | 79 | ||
80 | char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags); | 80 | char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags); |
81 | extern const char * const btrfs_feature_set_names[FEAT_MAX]; | 81 | extern const char * const btrfs_feature_set_names[FEAT_MAX]; |
82 | extern struct kobj_type space_info_ktype; | ||
83 | int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, | 82 | int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, |
84 | struct btrfs_device *one_device); | 83 | struct btrfs_device *one_device); |
85 | int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices, | 84 | int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices, |