--- zzzz-none-000/linux-2.6.32.61/arch/mips/math-emu/cp1emu.c 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/arch/mips/math-emu/cp1emu.c 2011-07-20 07:23:51.000000000 +0000 @@ -56,6 +56,12 @@ #endif #define __mips 4 +/* Further private data for which no space exists in mips_fpu_struct */ + +struct mips_fpu_emulator_stats fpuemustats; + +#ifdef CONFIG_MIPS_FPU_EMU + /* Function which emulates a floating point instruction. */ static int fpu_emu(struct pt_regs *, struct mips_fpu_struct *, @@ -66,10 +72,6 @@ struct mips_fpu_struct *, mips_instruction); #endif -/* Further private data for which no space exists in mips_fpu_struct */ - -struct mips_fpu_emulator_stats fpuemustats; - /* Control registers */ #define FPCREG_RID 0 /* $0 = revision id */ @@ -1281,6 +1283,13 @@ return sig; } +#else +int fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx, + int has_fpu) +{ + return 0; +} +#endif /* CONFIG_MIPS_FPU_EMU */ #ifdef CONFIG_DEBUG_FS extern struct dentry *mips_debugfs_dir;