Skip to content

Commit a0793fd

Browse files
Kelly Devillivguoren83
Kelly Devilliv
authored andcommitted
csky: fix typo of fpu config macro
Fix typo which will cause fpe and privilege exception error. Signed-off-by: Kelly Devilliv <[email protected]> Cc: stable <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent 0fcfb00 commit a0793fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/csky/kernel/traps.c

+2-2
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)