arm64: Kconfig: select COMPAT_BINFMT_ELF only when BINFMT_ELF is set
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 26 Jan 2017 03:19:55 +0000 (11:19 +0800)
committerWill Deacon <will.deacon@arm.com>
Thu, 26 Jan 2017 12:19:49 +0000 (12:19 +0000)
Fix warning:
"(COMPAT) selects COMPAT_BINFMT_ELF which has unmet direct dependencies
(COMPAT && BINFMT_ELF)"

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/Kconfig

index 359bca239ba7d3a4b7c3623af67f2581efa2bd07..bac0d1bb58b5af978873e623e772e21847bf3853 100644 (file)
@@ -1011,7 +1011,7 @@ source "fs/Kconfig.binfmt"
 config COMPAT
        bool "Kernel support for 32-bit EL0"
        depends on ARM64_4K_PAGES || EXPERT
-       select COMPAT_BINFMT_ELF
+       select COMPAT_BINFMT_ELF if BINFMT_ELF
        select HAVE_UID16
        select OLD_SIGSUSPEND3
        select COMPAT_OLD_SIGACTION