]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: move struct sysfs_dirent to private header
authorAdam J. Richter <adam@yggdrasil.com>
Fri, 16 Feb 2007 13:35:25 +0000 (21:35 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Feb 2007 22:52:09 +0000 (14:52 -0800)
commit34d71d498b8f08a076f3fd3c5e02a19387c336f5
treec5df874dec463be02221a58a9dcdaf43d8038457
parent25b20e3d69a6e9f5153575d32defde755f7573ed
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: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/sysfs.h
include/linux/sysfs.h