public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/Kconfig: Fix dependency for X86_DEBUG_FPU
@ 2025-04-07 23:10 Shuah Khan
  2025-04-08  6:54 ` Ingo Molnar
  0 siblings, 1 reply; 8+ messages in thread
From: Shuah Khan @ 2025-04-07 23:10 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen; +Cc: Shuah Khan, x86, linux-kernel, hpa

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@linuxfoundation.org>
---
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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-13 19:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 23:10 [PATCH] x86/Kconfig: Fix dependency for X86_DEBUG_FPU Shuah Khan
2025-04-08  6:54 ` Ingo Molnar
2025-04-08 16:51   ` Shuah Khan
2025-04-09 21:34     ` Ingo Molnar
2025-04-09 21:41       ` Shuah Khan
2025-04-10  6:31         ` Ingo Molnar
2025-04-10 21:18           ` Shuah Khan
2025-04-13 19:04             ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox