Skip to contentSkip to conversation

fix dsemul build error

PATCH In review Yoichi Yuasa 2 participants 2 messages Oct 30, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix dsemul build error

arch/mips/math-emu/dsemul.c: In function 'mips_dsemul':
arch/mips/math-emu/dsemul.c:96: error: 'BRK_MEMU' undeclared (first use in this function) arch/mips/math-emu/dsemul.c:96: error: (Each undeclared identifier is reported only once arch/mips/math-emu/dsemul.c:96: error: for each function it appears in.) arch/mips/math-emu/dsemul.c: In function 'do_dsemulret':
arch/mips/math-emu/dsemul.c:138: error: 'BRK_MEMU' undeclared (first use in this function) make[1]: *** [arch/mips/math-emu/dsemul.o] Error 1

arch/mips/include/asm/fpu_emulator.h +1 -0
diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/arch/mips/include/asm/fpu_emulator.h linux/arch/mips/include/asm/fpu_emulator.h
@@ -23,6 +23,7 @@
 #ifndef _ASM_FPU_EMULATOR_H
 #define _ASM_FPU_EMULATOR_H
 
+#include <asm/break.h>
 #include <asm/inst.h>
 
 struct mips_fpu_emulator_stats {
#1 lore raw
Quoted 7 lines · Yoichi Yuasa

arch/mips/math-emu/dsemul.c: In function 'mips_dsemul':
arch/mips/math-emu/dsemul.c:96: error: 'BRK_MEMU' undeclared (first use in this function) arch/mips/math-emu/dsemul.c:96: error: (Each undeclared identifier is reported only once arch/mips/math-emu/dsemul.c:96: error: for each function it appears in.) arch/mips/math-emu/dsemul.c: In function 'do_dsemulret':
arch/mips/math-emu/dsemul.c:138: error: 'BRK_MEMU' undeclared (first use in this function) make[1]: *** [arch/mips/math-emu/dsemul.o] Error 1

Interesting. Ah, the kernel builds with CONFIG_BUG=y. So enabling the bugs makes the kernel work, that's another bug ;-)

Patch applied, thanks!

Ralf