Skip to content
Commit d56c3eae authored by Adam J. Richter's avatar Adam J. Richter Committed by Greg Kroah-Hartman
Browse files

sysfs: move struct sysfs_dirent to private header



struct sysfs_dirent is private to the fs/sysfs/ subtree.  It is
not even referenced as an opaque structure outside of that subtree.

The following patch moves the declaration from include/linux/sysfs.h to
fs/sysfs/sysfs.h, making it clearer that nothing else in the kernel
dereferences it.

I have been running this patch for years.  Please integrate and forward
upstream if there are no objections.

From: "Adam J. Richter" <adam@yggdrasil.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 63ce18cf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment