Skip to content

Commit f6cc746

Browse files
H. Peter AnvinAl Viro
authored andcommitted
devpts: remove module-related code
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>
1 parent 3b22edc commit f6cc746

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎fs/devpts/inode.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ static void devpts_kill_sb(struct super_block *sb)
423423
}
424424

425425
static struct file_system_type devpts_fs_type = {
426-
.owner = THIS_MODULE,
427426
.name = "devpts",
428427
.get_sb = devpts_get_sb,
429428
.kill_sb = devpts_kill_sb,
@@ -564,13 +563,4 @@ static int __init init_devpts_fs(void)
564563
}
565564
return err;
566565
}
567-
568-
static void __exit exit_devpts_fs(void)
569-
{
570-
unregister_filesystem(&devpts_fs_type);
571-
mntput(devpts_mnt);
572-
}
573-
574566
module_init(init_devpts_fs)
575-
module_exit(exit_devpts_fs)
576-
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)