• Adam J. Richter's avatar
    sysfs: move struct sysfs_dirent to private header · d56c3eae
    Adam J. Richter authored
    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>
    d56c3eae
sysfs.h 3.58 KB