]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: cleanup kobject.h includes
authorDavid Sterba <dsterba@suse.com>
Thu, 1 Aug 2019 17:46:20 +0000 (19:46 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:07 +0000 (14:59 +0200)
The kobject should be pulled in via sysfs.h and that needs to include it
because it needs various definitions like kobj_attribute or kobject.

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

index c40f28f175c8c6acc4b6070ef7b2899b71b0d42a..fc5031e6fd236107b5d0975b9f506a38d7312570 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/backing-dev.h>
 #include <linux/wait.h>
 #include <linux/slab.h>
-#include <linux/kobject.h>
 #include <trace/events/btrfs.h>
 #include <asm/kmap_types.h>
 #include <asm/unaligned.h>
index 9078e377ba7baf014f232710df04e0a131e0ce65..85cf3bfc9f6292b662f11d0c49106c370990d0d0 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/completion.h>
-#include <linux/kobject.h>
 #include <linux/bug.h>
 
 #include "ctree.h"
index 4243fcf607b01d259e6ee2c0422ffcc49f801bca..611e103c174b5022aab807c7c102fef39e849282 100644 (file)
@@ -3,6 +3,8 @@
 #ifndef BTRFS_SYSFS_H
 #define BTRFS_SYSFS_H
 
+#include <linux/kobject.h>
+
 enum btrfs_feature_set {
        FEAT_COMPAT,
        FEAT_COMPAT_RO,