Move struct sysfs_dirent from incude/linux/sysfs.h to fs/sysfs/sysfs.h From: <> --- src/fs/sysfs/sysfs.h | 11 +++++++++++ src/include/linux/sysfs.h | 12 ------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/fs/sysfs/sysfs.h b/src/fs/sysfs/sysfs.h index d976b00..a77c57e 100644 --- a/src/fs/sysfs/sysfs.h +++ b/src/fs/sysfs/sysfs.h @@ -1,3 +1,14 @@ +struct sysfs_dirent { + atomic_t s_count; + struct list_head s_sibling; + struct list_head s_children; + void * s_element; + int s_type; + umode_t s_mode; + struct dentry * s_dentry; + struct iattr * s_iattr; + atomic_t s_event; +}; extern struct vfsmount * sysfs_mount; extern struct kmem_cache *sysfs_dir_cachep; diff --git a/src/include/linux/sysfs.h b/src/include/linux/sysfs.h index 192de3a..567cdca 100644 --- a/src/include/linux/sysfs.h +++ b/src/include/linux/sysfs.h @@ -68,18 +68,6 @@ struct sysfs_ops { ssize_t (*store)(struct kobject *,struct attribute *,const char *, size_t); }; -struct sysfs_dirent { - atomic_t s_count; - struct list_head s_sibling; - struct list_head s_children; - void * s_element; - int s_type; - umode_t s_mode; - struct dentry * s_dentry; - struct iattr * s_iattr; - atomic_t s_event; -}; - #define SYSFS_ROOT 0x0001 #define SYSFS_DIR 0x0002 #define SYSFS_KOBJ_ATTR 0x0004