arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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: 8c94db0ae97c ("binfmt_elf: preserve original ELF e_flags for core dumps")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
arch/riscv/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 0c6038dc5dfd529e1fe623f6bc2729a388b33fde..22cda9c452d2a99529e7d6a268a93926db51859e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -29,7 +29,7 @@ config RISCV
select ARCH_HAS_DEBUG_VIRTUAL if MMU
select ARCH_HAS_DEBUG_VM_PGTABLE
select ARCH_HAS_DEBUG_WX
- select ARCH_HAS_ELF_CORE_EFLAGS
+ select ARCH_HAS_ELF_CORE_EFLAGS if BINFMT_ELF && ELF_CORE
select ARCH_HAS_FAST_MULTIPLIER
select ARCH_HAS_FORTIFY_SOURCE
select ARCH_HAS_GCOV_PROFILE_ALL
---
base-commit: ec714e371f22f716a04e6ecb2a24988c92b26911
change-id: 20251009-riscv-elf-core-eflags-32e04d61d7ab
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@linutronix.de>
On Thu, 9 Oct 2025, Thomas Weißschuh wrote:
> 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: 8c94db0ae97c ("binfmt_elf: preserve original ELF e_flags for core dumps")
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Thanks Thomas, queued for early v6.18-rc.
- Paul
© 2016 - 2025 Red Hat, Inc.