patch-2.3.13 linux/fs/binfmt_misc.c
Next file: linux/fs/binfmt_script.c
Previous file: linux/fs/binfmt_em86.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Tue Aug 3 10:18:39 1999
- Orig file:
v2.3.12/linux/fs/binfmt_misc.c
- Orig date:
Wed Jul 28 14:47:42 1999
diff -u --recursive --new-file v2.3.12/linux/fs/binfmt_misc.c linux/fs/binfmt_misc.c
@@ -64,13 +64,7 @@
static int entry_proc_setup(struct binfmt_entry *e);
static struct linux_binfmt misc_format = {
- NULL,
-#ifndef MODULE
- NULL,
-#else
- &__this_module,
-#endif
- load_misc_binary, NULL, NULL, 0
+ NULL, THIS_MODULE, load_misc_binary, NULL, NULL, 0
};
static struct proc_dir_entry *bm_dir = NULL;
@@ -495,7 +489,7 @@
}
#endif
-int __init init_misc_binfmt(void)
+static int __init init_misc_binfmt(void)
{
int error = -ENOENT;
struct proc_dir_entry *status = NULL, *reg;
@@ -530,14 +524,7 @@
goto out;
}
-#ifdef MODULE
-EXPORT_NO_SYMBOLS;
-int init_module(void)
-{
- return init_misc_binfmt();
-}
-
-void cleanup_module(void)
+static void __exit exit_misc_binfmt(void)
{
unregister_binfmt(&misc_format);
remove_proc_entry("register", bm_dir);
@@ -545,5 +532,8 @@
clear_entries();
remove_proc_entry("sys/fs/binfmt_misc", NULL);
}
-#endif
-#undef VERBOSE_STATUS
+
+EXPORT_NO_SYMBOLS;
+
+module_init(init_misc_binfmt)
+module_exit(exit_misc_binfmt)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)