Skip to content

Commit 873e146

Browse files
committed
arch/arm64: Let the architecture select ARCH_HAVE_FORK.
Review of apache#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) <noreply@anthropic.com> Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent 8245545 commit 873e146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ config ARCH_ARM
2626
config ARCH_ARM64
2727
bool "ARM64"
2828
select ALARM_ARCH
29+
select ARCH_HAVE_FORK if BUILD_KERNEL && ARCH_ADDRENV
2930
select ARCH_64BIT
3031
select ARCH_HAVE_BACKTRACE
3132
select ARCH_HAVE_INTERRUPTSTACK
@@ -492,7 +493,6 @@ config ARCH_HAVE_VFORK
492493

493494
config ARCH_HAVE_FORK
494495
bool
495-
default y if ARCH_ARM64 && ARCH_USE_MMU && !BUILD_PROTECTED
496496
default n
497497
depends on ARCH_ADDRENV
498498
---help---

0 commit comments

Comments
 (0)