提交 bfc5c173 编写于 作者: T Tejun Heo 提交者: Greg Kroah-Hartman

sysfs, kernfs: remove cross inclusions of internal headers

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: NTejun Heo <tj@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ac9bba03
......@@ -48,8 +48,6 @@ struct sysfs_addrm_cxt {
struct sysfs_dirent *removed;
};
#include "../sysfs/sysfs.h"
/*
* mount.c
*/
......
......@@ -11,7 +11,6 @@
#ifndef __SYSFS_INTERNAL_H
#define __SYSFS_INTERNAL_H
#include "../kernfs/kernfs-internal.h"
#include <linux/sysfs.h>
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册