[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200906170419.n5H4Jdkn017670@voreg.hos.anvin.org>
Date: Tue, 16 Jun 2009 21:15:04 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH] 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.
Signed-off-by: H. Peter Anvin <hpa@...or.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists