OSDN Git Service

Kconfig: regularize selection of CONFIG_BINFMT_ELF
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 Dec 2020 04:56:34 +0000 (23:56 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 6 Jan 2021 13:42:49 +0000 (08:42 -0500)
commit41026c343540e33627e23c8a91ebb679a7c0f89c
treef32567ebfa1e34ccfc793a08885c0b0bb468e4cb
parent0bb87f051e4282afb5f472807c7244b21cf515c7
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>
arch/arm64/Kconfig
arch/mips/Kconfig
arch/parisc/Kconfig
arch/powerpc/Kconfig
arch/s390/Kconfig
arch/sparc/Kconfig
arch/x86/Kconfig
fs/Kconfig.binfmt