fix dsemul build error
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
@@ -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 {
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 oncearch/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