Skip to content

Commit 3202e18

Browse files
AdrianBunktorvalds
authored andcommitted
make BINFMT_FLAT a bool
I have not yet seen anyone saying he has a reasonable use case for using BINFMT_FLAT modular on his embedded device. Considering that fs/binfmt_flat.c even lacks a MODULE_LICENSE() I really doubt there is any, and this patch therefore makes BINFMT_FLAT a bool. Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Bryan Wu <cooloney.lkml@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f1e3af7 commit 3202e18

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎fs/Kconfig.binfmt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ config BINFMT_ELF_FDPIC
4141
It is also possible to run FDPIC ELF binaries on MMU linux also.
4242

4343
config BINFMT_FLAT
44-
tristate "Kernel support for flat binaries"
44+
bool "Kernel support for flat binaries"
4545
depends on !MMU
4646
help
4747
Support uClinux FLAT format binaries.

‎fs/binfmt_flat.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -932,14 +932,8 @@ static int __init init_flat_binfmt(void)
932932
return register_binfmt(&flat_format);
933933
}
934934

935-
static void __exit exit_flat_binfmt(void)
936-
{
937-
unregister_binfmt(&flat_format);
938-
}
939-
940935
/****************************************************************************/
941936

942937
core_initcall(init_flat_binfmt);
943-
module_exit(exit_flat_binfmt);
944938

945939
/****************************************************************************/

0 commit comments

Comments
 (0)