Skip to content

Commit 014c2fa

Browse files
Kelly Devillivgregkh
authored andcommitted
csky: fix typo of fpu config macro
commit a0793fd upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ee86d0b commit 014c2fa

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
@@ -211,7 +211,7 @@ asmlinkage void do_trap_illinsn(struct pt_regs *regs)
211211

212212
asmlinkage void do_trap_fpe(struct pt_regs *regs)
213213
{
214-
#ifdef CONFIG_CPU_HAS_FP
214+
#ifdef CONFIG_CPU_HAS_FPU
215215
return fpu_fpe(regs);
216216
#else
217217
do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc,
@@ -221,7 +221,7 @@ asmlinkage void do_trap_fpe(struct pt_regs *regs)
221221

222222
asmlinkage void do_trap_priv(struct pt_regs *regs)
223223
{
224-
#ifdef CONFIG_CPU_HAS_FP
224+
#ifdef CONFIG_CPU_HAS_FPU
225225
if (user_mode(regs) && fpu_libc_helper(regs))
226226
return;
227227
#endif

0 commit comments

Comments
 (0)