* [PATCH] riscv: Respect dependencies of ARCH_HAS_ELF_CORE_EFLAGS
@ 2025-10-09 9:18 Thomas Weißschuh
2025-10-10 1:41 ` Paul Walmsley
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Weißschuh @ 2025-10-09 9:18 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Svetlana Parfenova, Kees Cook
Cc: linux-riscv, linux-kernel, Thomas Weißschuh
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>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] riscv: Respect dependencies of ARCH_HAS_ELF_CORE_EFLAGS
2025-10-09 9:18 [PATCH] riscv: Respect dependencies of ARCH_HAS_ELF_CORE_EFLAGS Thomas Weißschuh
@ 2025-10-10 1:41 ` Paul Walmsley
0 siblings, 0 replies; 2+ messages in thread
From: Paul Walmsley @ 2025-10-10 1:41 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Svetlana Parfenova, Kees Cook, linux-riscv, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-10 1:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-09 9:18 [PATCH] riscv: Respect dependencies of ARCH_HAS_ELF_CORE_EFLAGS Thomas Weißschuh
2025-10-10 1:41 ` Paul Walmsley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®