[PATCH] x86/Kconfig: Fix dependency for X86_DEBUG_FPU
From: Shuah Khan
Date: Mon Apr 07 2025 - 19:11:05 EST
Compile fails when X86_DEBUG_FPU is enabled and X86_REQUIRED_FEATURE_FPU is
disabled. Add explicit dependency on X86_REQUIRED_FEATURE_FPU to fix it.
../arch/x86/kernel/fpu/regset.c:411:(.text+0x4cf2f): undefined reference to `fpregs_soft_get'
ld: vmlinux.o: in function `fpregs_set':
../arch/x86/kernel/fpu/regset.c:445:(.text+0x4d0da): undefined reference to `fpregs_soft_set'
ld: vmlinux.o: in function `copy_fpstate_to_sigframe':
../arch/x86/kernel/fpu/signal.c:197:(.text+0x4da98): undefined reference to `fpregs_soft_get'
Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
---
6.14 compile worked without X86_REQUIRED_FEATURE_FPU enabled. Might be a
new dependency. Enabling X86_REQUIRED_FEATURE_FPU fixed it for me on my
test system.
arch/x86/Kconfig.debug | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index c95c3aaadf97..6738de325fe6 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -199,6 +199,7 @@ config DEBUG_IMR_SELFTEST
config X86_DEBUG_FPU
bool "Debug the x86 FPU code"
+ depends on X86_REQUIRED_FEATURE_FPU
depends on DEBUG_KERNEL
default y
help
--
2.47.2