btrfs: sysfs: unexport btrfs_raid_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:06 +0000 (14:59 +0200)
The last non-sysfs usage of btrfs_raid_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 50cb9f9cdbfd50671c508b1c6bc0450a40be9b78..f581ceedf5a982b0bd06470189225412629f8abe 100644 (file)
@@ -336,7 +336,7 @@ static void release_raid_kobj(struct kobject *kobj)
        kfree(to_raid_kobj(kobj));
 }
 
-struct kobj_type btrfs_raid_ktype = {
+static struct kobj_type btrfs_raid_ktype = {
        .sysfs_ops = &kobj_sysfs_ops,
        .release = release_raid_kobj,
        .default_groups = raid_groups,
index 403240e81dd2cb34d37f3868de22e2d7f1f8999b..a359f0b7c20b3fbc0ea2f89ed99f419d7184617e 100644 (file)
@@ -80,7 +80,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;
-extern struct kobj_type btrfs_raid_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,