--- zzzz-none-000/linux-4.9.218/arch/mips/include/asm/dsemul.h 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ac-750/linux-4.9.218/arch/mips/include/asm/dsemul.h 2022-11-30 09:46:19.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__ */