btrfs: sysfs: unexport space_info_ktype
authorDavid Sterba <dsterba@suse.com>
Thu, 1 Aug 2019 15:55:55 +0000 (17:55 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:07 +0000 (14:59 +0200)
The last non-sysfs usage of space_info_ktype has been moved to a private
helper in previous patch so the variable can be made static.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c
fs/btrfs/sysfs.h

index d982730265b9778abac4c9d6b4199b6ffe58fa0c..bc82ab66ba8f8ddce60e693f48ef9c1888736cb5 100644 (file)
@@ -395,7 +395,7 @@ static void space_info_release(struct kobject *kobj)
        kfree(sinfo);
 }
 
-struct kobj_type space_info_ktype = {
+static struct kobj_type space_info_ktype = {
        .sysfs_ops = &kobj_sysfs_ops,
        .release = space_info_release,
        .default_groups = space_info_groups,
index 6baf9ff0519b184e06da56153b728dfab955b738..0c06f2adfae87ec24db89b8df16140d8307e4443 100644 (file)
@@ -79,7 +79,6 @@ attr_to_btrfs_feature_attr(struct attribute *attr)
 
 char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags);
 extern const char * const btrfs_feature_set_names[FEAT_MAX];
-extern struct kobj_type space_info_ktype;
 int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices,
                struct btrfs_device *one_device);
 int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices,