[PATCH] devpts: remove module-related code

From: H. Peter Anvin
Date: Wed Jun 17 2009 - 00:19:53 EST


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.

Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxx>
---
fs/devpts/inode.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index 9b1d285..ec75329 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -10,7 +10,6 @@
*
* ------------------------------------------------------------------------- */

-#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/sched.h>
@@ -423,7 +422,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,
@@ -564,13 +562,3 @@ 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");
--
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/