lkml.org 
[lkml]   [2010]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch] debugfs: remove module_exit()
    debugfs can't be a module, so module_exit() is meaningless
    for it.

    Signed-off-by: WANG Cong <amwang@redhat.com>

    ---
    diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
    index 37a8ca7..d38c88f 100644
    --- a/fs/debugfs/inode.c
    +++ b/fs/debugfs/inode.c
    @@ -13,9 +13,6 @@
    *
    */

    -/* uncomment to get debug messages from the debug filesystem, ah the irony. */
    -/* #define DEBUG */
    -
    #include <linux/module.h>
    #include <linux/fs.h>
    #include <linux/mount.h>
    @@ -540,17 +537,5 @@ static int __init debugfs_init(void)

    return retval;
    }
    -
    -static void __exit debugfs_exit(void)
    -{
    - debugfs_registered = false;
    -
    - simple_release_fs(&debugfs_mount, &debugfs_mount_count);
    - unregister_filesystem(&debug_fs_type);
    - kobject_put(debug_kobj);
    -}
    -
    core_initcall(debugfs_init);
    -module_exit(debugfs_exit);
    -MODULE_LICENSE("GPL");


    \
     
     \ /
      Last update: 2010-11-09 10:23    [W:0.020 / U:1.764 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site