Skip to content

Commit 7882d2c

Browse files
t-8chPaul Walmsley
authored andcommitted
riscv: Respect dependencies of ARCH_HAS_ELF_CORE_EFLAGS
This kconfig symbol has dependencies and is only selectable if those dependencies are also enabled. Respect the dependencies. Fixes the following warning when configuring an 'allnoconfig': WARNING: unmet direct dependencies detected for ARCH_HAS_ELF_CORE_EFLAGS Depends on [n]: BINFMT_ELF [=n] && ELF_CORE [=y] Selected by [y]: - RISCV [=y] Fixes: 8c94db0 ("binfmt_elf: preserve original ELF e_flags for core dumps") Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://lore.kernel.org/r/20251009-riscv-elf-core-eflags-v1-1-e9b45ab6b36d@linutronix.de Signed-off-by: Paul Walmsley <pjw@kernel.org>
1 parent 69a8b62 commit 7882d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ config RISCV
2929
select ARCH_HAS_DEBUG_VIRTUAL if MMU
3030
select ARCH_HAS_DEBUG_VM_PGTABLE
3131
select ARCH_HAS_DEBUG_WX
32-
select ARCH_HAS_ELF_CORE_EFLAGS
32+
select ARCH_HAS_ELF_CORE_EFLAGS if BINFMT_ELF && ELF_CORE
3333
select ARCH_HAS_FAST_MULTIPLIER
3434
select ARCH_HAS_FORTIFY_SOURCE
3535
select ARCH_HAS_GCOV_PROFILE_ALL

0 commit comments

Comments
 (0)