sysfs, kernfs: remove cross inclusions of internal headers
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:47 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 02:54:50 +0000 (18:54 -0800)
fs/kernfs/kernfs-internal.h needed to include fs/sysfs/sysfs.h because
part of kernfs core implementation was living in sysfs.

fs/sysfs/sysfs.h needed to include fs/kernfs/kernfs-internal.h because
include/linux/kernfs.h didn't expose enough interface.

The separation is complete and neither is true anymore.  Remove the
cross inclusion and make sysfs a proper user of kernfs.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/kernfs-internal.h
fs/sysfs/sysfs.h

index f33a7844e8fd857a1d820017c0d8b3dc028b17d6..d1ff591c5cf3be1e7da34e0bffb0ea780ca1bdd6 100644 (file)
@@ -48,8 +48,6 @@ struct sysfs_addrm_cxt {
        struct sysfs_dirent     *removed;
 };
 
-#include "../sysfs/sysfs.h"
-
 /*
  * mount.c
  */
index 6a82311a50fe630f3c13331287a5830b4e93b0ff..c8e395b49330b0939eabd41cb61acfdfa549b8cd 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef __SYSFS_INTERNAL_H
 #define __SYSFS_INTERNAL_H
 
-#include "../kernfs/kernfs-internal.h"
 #include <linux/sysfs.h>
 
 /*