--- zzzz-none-000/linux-4.9.276/arch/mips/include/asm/dsemul.h 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/arch/mips/include/asm/dsemul.h 2023-04-05 08:19:00.000000000 +0000 @@ -41,6 +41,7 @@ extern int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long branch_pc, unsigned long cont_pc); +#ifdef CONFIG_MIPS_FPU_EMULATOR /** * do_dsemulret() - Return from a delay slot 'emulation' frame * @xcp: User thread register context. @@ -88,5 +89,26 @@ * before @mm is freed in order to avoid memory leaks. */ extern void dsemul_mm_cleanup(struct mm_struct *mm); +#else +static inline bool do_dsemulret(struct pt_regs *xcp) +{ + return false; +} + +static inline bool dsemul_thread_cleanup(struct task_struct *tsk) +{ + return false; +} + +static inline bool dsemul_thread_rollback(struct pt_regs *regs) +{ + return false; +} + +static inline void dsemul_mm_cleanup(struct mm_struct *mm) +{ +} + +#endif #endif /* __MIPS_ASM_DSEMUL_H__ */