diff options
-rw-r--r-- | arch/ia64/ia32/binfmt_elf32.c | 2 | ||||
-rw-r--r-- | fs/exec.c | 3 | ||||
-rw-r--r-- | include/linux/binfmts.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c index 1cfab326fb7e..f6ae3ec93810 100644 --- a/arch/ia64/ia32/binfmt_elf32.c +++ b/arch/ia64/ia32/binfmt_elf32.c | |||
@@ -240,7 +240,7 @@ static int __init check_elf32_binfmt(void) | |||
240 | { | 240 | { |
241 | if (cpu_uses_ia32el()) { | 241 | if (cpu_uses_ia32el()) { |
242 | printk("Please use IA-32 EL for executing IA-32 binaries\n"); | 242 | printk("Please use IA-32 EL for executing IA-32 binaries\n"); |
243 | return unregister_binfmt(&elf_format); | 243 | unregister_binfmt(&elf_format); |
244 | } | 244 | } |
245 | return 0; | 245 | return 0; |
246 | } | 246 | } |
@@ -81,12 +81,11 @@ int register_binfmt(struct linux_binfmt * fmt) | |||
81 | 81 | ||
82 | EXPORT_SYMBOL(register_binfmt); | 82 | EXPORT_SYMBOL(register_binfmt); |
83 | 83 | ||
84 | int unregister_binfmt(struct linux_binfmt * fmt) | 84 | void unregister_binfmt(struct linux_binfmt * fmt) |
85 | { | 85 | { |
86 | write_lock(&binfmt_lock); | 86 | write_lock(&binfmt_lock); |
87 | list_del(&fmt->lh); | 87 | list_del(&fmt->lh); |
88 | write_unlock(&binfmt_lock); | 88 | write_unlock(&binfmt_lock); |
89 | return 0; | ||
90 | } | 89 | } |
91 | 90 | ||
92 | EXPORT_SYMBOL(unregister_binfmt); | 91 | EXPORT_SYMBOL(unregister_binfmt); |
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index 6b834dcd20b0..63d54366e0e5 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h | |||
@@ -73,7 +73,7 @@ struct linux_binfmt { | |||
73 | }; | 73 | }; |
74 | 74 | ||
75 | extern int register_binfmt(struct linux_binfmt *); | 75 | extern int register_binfmt(struct linux_binfmt *); |
76 | extern int unregister_binfmt(struct linux_binfmt *); | 76 | extern void unregister_binfmt(struct linux_binfmt *); |
77 | 77 | ||
78 | extern int prepare_binprm(struct linux_binprm *); | 78 | extern int prepare_binprm(struct linux_binprm *); |
79 | extern int __must_check remove_arg_zero(struct linux_binprm *); | 79 | extern int __must_check remove_arg_zero(struct linux_binprm *); |