From b2ca68e90cd7cbc248c55726653a12cf6c02d86a Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Thu, 28 Nov 2013 14:54:47 -0500 Subject: 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: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- fs/kernfs/kernfs-internal.h | 2 -- fs/sysfs/sysfs.h | 1 - 2 files changed, 3 deletions(-) diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h index f33a7844e8f..d1ff591c5cf 100644 --- a/fs/kernfs/kernfs-internal.h +++ b/fs/kernfs/kernfs-internal.h @@ -48,8 +48,6 @@ struct sysfs_addrm_cxt { struct sysfs_dirent *removed; }; -#include "../sysfs/sysfs.h" - /* * mount.c */ diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 6a82311a50f..c8e395b4933 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h @@ -11,7 +11,6 @@ #ifndef __SYSFS_INTERNAL_H #define __SYSFS_INTERNAL_H -#include "../kernfs/kernfs-internal.h" #include /* -- cgit v1.2.3