mirror of https://gitee.com/openkylin/linux.git
sparc: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aecc63ae82
commit
17ec0a17e9
|
@ -87,7 +87,6 @@ void auxio_set_lte(int on)
|
|||
__auxio_sbus_set_lte(on);
|
||||
break;
|
||||
case AUXIO_TYPE_EBUS:
|
||||
/* FALL-THROUGH */
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ static int clock_board_calc_nslots(struct clock_board *p)
|
|||
else
|
||||
return 5;
|
||||
}
|
||||
/* Fallthrough */
|
||||
fallthrough;
|
||||
default:
|
||||
return 4;
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
|
|||
linux_regs->pc = addr;
|
||||
linux_regs->npc = addr + 4;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
|
||||
case 'D':
|
||||
case 'k':
|
||||
|
|
|
@ -148,7 +148,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
|
|||
linux_regs->tpc = addr;
|
||||
linux_regs->tnpc = addr + 4;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
|
||||
case 'D':
|
||||
case 'k':
|
||||
|
|
|
@ -359,7 +359,7 @@ int __init pcr_arch_init(void)
|
|||
* counter overflow interrupt so we can't make use of
|
||||
* their hardware currently.
|
||||
*/
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
default:
|
||||
err = -ENODEV;
|
||||
goto out_unregister;
|
||||
|
|
|
@ -224,7 +224,7 @@ void __init of_console_init(void)
|
|||
|
||||
case PROMDEV_TTYB:
|
||||
skip = 1;
|
||||
/* FALLTHRU */
|
||||
fallthrough;
|
||||
|
||||
case PROMDEV_TTYA:
|
||||
type = "serial";
|
||||
|
|
|
@ -646,7 +646,7 @@ static inline void syscall_restart32(unsigned long orig_i0, struct pt_regs *regs
|
|||
case ERESTARTSYS:
|
||||
if (!(sa->sa_flags & SA_RESTART))
|
||||
goto no_system_call_restart;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case ERESTARTNOINTR:
|
||||
regs->u_regs[UREG_I0] = orig_i0;
|
||||
regs->tpc -= 4;
|
||||
|
@ -686,7 +686,7 @@ void do_signal32(struct pt_regs * regs)
|
|||
regs->tpc -= 4;
|
||||
regs->tnpc -= 4;
|
||||
pt_regs_clear_syscall(regs);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case ERESTART_RESTARTBLOCK:
|
||||
regs->u_regs[UREG_G1] = __NR_restart_syscall;
|
||||
regs->tpc -= 4;
|
||||
|
|
|
@ -441,7 +441,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs,
|
|||
case ERESTARTSYS:
|
||||
if (!(sa->sa_flags & SA_RESTART))
|
||||
goto no_system_call_restart;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case ERESTARTNOINTR:
|
||||
regs->u_regs[UREG_I0] = orig_i0;
|
||||
regs->pc -= 4;
|
||||
|
@ -507,7 +507,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
|
|||
regs->pc -= 4;
|
||||
regs->npc -= 4;
|
||||
pt_regs_clear_syscall(regs);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case ERESTART_RESTARTBLOCK:
|
||||
regs->u_regs[UREG_G1] = __NR_restart_syscall;
|
||||
regs->pc -= 4;
|
||||
|
|
|
@ -461,7 +461,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs,
|
|||
case ERESTARTSYS:
|
||||
if (!(sa->sa_flags & SA_RESTART))
|
||||
goto no_system_call_restart;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case ERESTARTNOINTR:
|
||||
regs->u_regs[UREG_I0] = orig_i0;
|
||||
regs->tpc -= 4;
|
||||
|
@ -532,7 +532,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
|
|||
regs->tpc -= 4;
|
||||
regs->tnpc -= 4;
|
||||
pt_regs_clear_syscall(regs);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case ERESTART_RESTARTBLOCK:
|
||||
regs->u_regs[UREG_G1] = __NR_restart_syscall;
|
||||
regs->tpc -= 4;
|
||||
|
|
|
@ -359,7 +359,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
|
|||
*pfsr |= (6 << 14);
|
||||
return 0; /* simulate invalid_fp_register exception */
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 2:
|
||||
if (freg & 1) { /* doublewords must have bit 5 zeroed */
|
||||
*pfsr |= (6 << 14);
|
||||
|
@ -380,7 +380,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
|
|||
*pfsr |= (6 << 14);
|
||||
return 0; /* simulate invalid_fp_register exception */
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 2:
|
||||
if (freg & 1) { /* doublewords must have bit 5 zeroed */
|
||||
*pfsr |= (6 << 14);
|
||||
|
@ -408,13 +408,13 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
|
|||
*pfsr |= (6 << 14);
|
||||
return 0; /* simulate invalid_fp_register exception */
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 2:
|
||||
if (freg & 1) { /* doublewords must have bit 5 zeroed */
|
||||
*pfsr |= (6 << 14);
|
||||
return 0;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 1:
|
||||
rd = (void *)&fregs[freg];
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue