Skip to content

Commit a0793fd

Browse files
Kelly Devillivguoren83
authored andcommitted
csky: fix typo of fpu config macro
Fix typo which will cause fpe and privilege exception error. Signed-off-by: Kelly Devilliv <kelly.devilliv@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
1 parent 0fcfb00 commit a0793fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/csky/kernel/traps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ asmlinkage void do_trap_illinsn(struct pt_regs *regs)
209209

210210
asmlinkage void do_trap_fpe(struct pt_regs *regs)
211211
{
212-
#ifdef CONFIG_CPU_HAS_FP
212+
#ifdef CONFIG_CPU_HAS_FPU
213213
return fpu_fpe(regs);
214214
#else
215215
do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc,
@@ -219,7 +219,7 @@ asmlinkage void do_trap_fpe(struct pt_regs *regs)
219219

220220
asmlinkage void do_trap_priv(struct pt_regs *regs)
221221
{
222-
#ifdef CONFIG_CPU_HAS_FP
222+
#ifdef CONFIG_CPU_HAS_FPU
223223
if (user_mode(regs) && fpu_libc_helper(regs))
224224
return;
225225
#endif

0 commit comments

Comments
 (0)