Skip to content

Commit

Permalink
sysfs, kernfs: remove cross inclusions of internal headers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
htejun authored and gregkh committed Nov 30, 2013
1 parent ac9bba0 commit bfc5c17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions fs/kernfs/kernfs-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ struct sysfs_addrm_cxt {
struct sysfs_dirent *removed;
};

#include "../sysfs/sysfs.h"

/*
* mount.c
*/
Expand Down
1 change: 0 additions & 1 deletion fs/sysfs/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifndef __SYSFS_INTERNAL_H
#define __SYSFS_INTERNAL_H

#include "../kernfs/kernfs-internal.h"
#include <linux/sysfs.h>

/*
Expand Down

0 comments on commit bfc5c17

Please sign in to comment.