Skip to content

Commit 42b2099

Browse files
arndbtsbogend
authored andcommitted
MIPS: make kgdb depend on FPU support
kgdb fails to build when the FPU support is disabled: arch/mips/kernel/kgdb.c: In function 'dbg_set_reg': arch/mips/kernel/kgdb.c:147:35: error: 'struct thread_struct' has no member named 'fpu' 147 | memcpy((void *)&current->thread.fpu.fcr31, mem, | ^ arch/mips/kernel/kgdb.c:155:34: error: 'struct thread_struct' has no member named 'fpu' 155 | memcpy((void *)&current->thread.fpu.fpr[fp_reg], mem, This is only relevant for CONFIG_EXPERT=y, so disallowing it in Kconfig is an easier workaround than fixing it properly. Reported-by: kernel test robot <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent aadfe4b commit 42b2099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config MIPS
4343
select HANDLE_DOMAIN_IRQ
4444
select HAVE_ARCH_COMPILER_H
4545
select HAVE_ARCH_JUMP_LABEL
46-
select HAVE_ARCH_KGDB
46+
select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
4747
select HAVE_ARCH_MMAP_RND_BITS if MMU
4848
select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
4949
select HAVE_ARCH_SECCOMP_FILTER

0 commit comments

Comments
 (0)