From ec6a6eb04d4c6b865d5df23ae9755b559b6e1bd2 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Thu, 8 May 2025 14:18:42 -0700 Subject: [PATCH] x86: x86_64: ARCH_HAS_STACKWALK possible with optimization Stack walking on x86_64 can run with compiler optimization and does not need CONFIG_NO_OPTIMIZATIONS as long as frame pointers are not omitted. So remove the "depends on" for x86_64 from CONFIG_ARCH_HAS_STACKWALK. Signed-off-by: Daniel Leung --- arch/x86/core/Kconfig.intel64 | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/core/Kconfig.intel64 b/arch/x86/core/Kconfig.intel64 index 7b5359a7ecd..e1f5869c772 100644 --- a/arch/x86/core/Kconfig.intel64 +++ b/arch/x86/core/Kconfig.intel64 @@ -35,7 +35,6 @@ config ARCH_HAS_STACKWALK select DEBUG_INFO select THREAD_STACK_INFO depends on !OMIT_FRAME_POINTER - depends on NO_OPTIMIZATIONS help Internal config to indicate that the arch_stack_walk() API is implemented and it can be enabled.