aboutsummaryrefslogtreecommitdiffstats
path: root/fs/Kconfig.binfmt
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-12-02 23:56:34 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2021-01-06 08:42:49 -0500
commit41026c343540e33627e23c8a91ebb679a7c0f89c (patch)
treef32567ebfa1e34ccfc793a08885c0b0bb468e4cb /fs/Kconfig.binfmt
parentmips compat: switch to compat_binfmt_elf.c (diff)
downloadlinux-dev-41026c343540e33627e23c8a91ebb679a7c0f89c.tar.xz
linux-dev-41026c343540e33627e23c8a91ebb679a7c0f89c.zip
Kconfig: regularize selection of CONFIG_BINFMT_ELF
with mips converted to use of fs/config_binfmt_elf.c, there's no need to keep selects of that thing all over arch/* - we can simply turn into def_bool y if COMPAT && BINFMT_ELF (in fs/Kconfig.binfmt) and get rid of all selects. Several architectures got those selects wrong (e.g. you could end up with sparc64 sans BINFMT_ELF, with select violating dependencies, etc.) Randy Dunlap has spotted some of those; IMO this is simpler than his fix, but it depends upon the stuff that would need to be backported, so we might end up using his variant for -stable. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/Kconfig.binfmt')
-rw-r--r--fs/Kconfig.binfmt2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt
index 885da6d983b4..b32f5df68ae9 100644
--- a/fs/Kconfig.binfmt
+++ b/fs/Kconfig.binfmt
@@ -29,7 +29,7 @@ config BINFMT_ELF
latest version).
config COMPAT_BINFMT_ELF
- bool
+ def_bool y
depends on COMPAT && BINFMT_ELF
select ELFCORE