Skip to content

Commit

Permalink
devpts: remove module-related code
Browse files Browse the repository at this point in the history
These days, the devpts filesystem is closely integrated with the pty
memory management, and cannot be built as a module, even less removed
from the kernel.  Accordingly, remove all module-related stuff from
this filesystem.

[ v2: only remove code that's actually dead ]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
H. Peter Anvin authored and Al Viro committed Jun 24, 2009
1 parent 3b22edc commit f6cc746
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions fs/devpts/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ static void devpts_kill_sb(struct super_block *sb)
}

static struct file_system_type devpts_fs_type = {
.owner = THIS_MODULE,
.name = "devpts",
.get_sb = devpts_get_sb,
.kill_sb = devpts_kill_sb,
Expand Down Expand Up @@ -564,13 +563,4 @@ static int __init init_devpts_fs(void)
}
return err;
}

static void __exit exit_devpts_fs(void)
{
unregister_filesystem(&devpts_fs_type);
mntput(devpts_mnt);
}

module_init(init_devpts_fs)
module_exit(exit_devpts_fs)
MODULE_LICENSE("GPL");

0 comments on commit f6cc746

Please sign in to comment.