This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 27d621e4c74b246f40a7a8d740c03114bbe61ee4
Author: Marco Casaroli <[email protected]>
AuthorDate: Tue Aug 11 15:08:37 2026 +0200

    arch/x86_64: Let the architecture select ARCH_HAVE_FORK.
    
    Review of #19772 asked for this shape, and it applies to every architecture 
in
    the series.
    
    ARCH_HAVE_FORK described when it was available from inside its own 
definition,
    which put the per-architecture condition somewhere nobody looks.  The
    architecture now says so itself.
    
    The condition repeats the ARCH_ADDRENV dependency rather than relying on it,
    because a select bypasses depends on:  without that repetition an 
architecture
    could offer fork() where there is no address environment to duplicate.
    
    Assisted-by: Claude Opus 5 (1M context) <[email protected]>
    Signed-off-by: Marco Casaroli <[email protected]>
---
 arch/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index aeff9992e37..66117d4de2f 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -136,6 +136,7 @@ config ARCH_X86
 config ARCH_X86_64
        bool "x86_64"
        select ARCH_64BIT
+       select ARCH_HAVE_FORK if BUILD_KERNEL && ARCH_ADDRENV
        select ARCH_HAVE_TCBINFO
        select ARCH_HAVE_FPU
        select ARCH_HAVE_DPFPU
@@ -493,7 +494,6 @@ config ARCH_HAVE_VFORK
 
 config ARCH_HAVE_FORK
        bool
-       default y if ARCH_X86_64 && !BUILD_PROTECTED
        default n
        depends on ARCH_ADDRENV
        ---help---

Reply via email to