Commit 17ec0a17 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

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-throughSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aecc63ae
...@@ -87,7 +87,6 @@ void auxio_set_lte(int on) ...@@ -87,7 +87,6 @@ void auxio_set_lte(int on)
__auxio_sbus_set_lte(on); __auxio_sbus_set_lte(on);
break; break;
case AUXIO_TYPE_EBUS: case AUXIO_TYPE_EBUS:
/* FALL-THROUGH */
default: default:
break; break;
} }
......
...@@ -55,7 +55,7 @@ static int clock_board_calc_nslots(struct clock_board *p) ...@@ -55,7 +55,7 @@ static int clock_board_calc_nslots(struct clock_board *p)
else else
return 5; return 5;
} }
/* Fallthrough */ fallthrough;
default: default:
return 4; return 4;
} }
......
...@@ -122,7 +122,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, ...@@ -122,7 +122,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
linux_regs->pc = addr; linux_regs->pc = addr;
linux_regs->npc = addr + 4; linux_regs->npc = addr + 4;
} }
/* fall through */ fallthrough;
case 'D': case 'D':
case 'k': case 'k':
......
...@@ -148,7 +148,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, ...@@ -148,7 +148,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
linux_regs->tpc = addr; linux_regs->tpc = addr;
linux_regs->tnpc = addr + 4; linux_regs->tnpc = addr + 4;
} }
/* fall through */ fallthrough;
case 'D': case 'D':
case 'k': case 'k':
......
...@@ -359,7 +359,7 @@ int __init pcr_arch_init(void) ...@@ -359,7 +359,7 @@ int __init pcr_arch_init(void)
* counter overflow interrupt so we can't make use of * counter overflow interrupt so we can't make use of
* their hardware currently. * their hardware currently.
*/ */
/* fallthrough */ fallthrough;
default: default:
err = -ENODEV; err = -ENODEV;
goto out_unregister; goto out_unregister;
......
...@@ -224,7 +224,7 @@ void __init of_console_init(void) ...@@ -224,7 +224,7 @@ void __init of_console_init(void)
case PROMDEV_TTYB: case PROMDEV_TTYB:
skip = 1; skip = 1;
/* FALLTHRU */ fallthrough;
case PROMDEV_TTYA: case PROMDEV_TTYA:
type = "serial"; type = "serial";
......
...@@ -646,7 +646,7 @@ static inline void syscall_restart32(unsigned long orig_i0, struct pt_regs *regs ...@@ -646,7 +646,7 @@ static inline void syscall_restart32(unsigned long orig_i0, struct pt_regs *regs
case ERESTARTSYS: case ERESTARTSYS:
if (!(sa->sa_flags & SA_RESTART)) if (!(sa->sa_flags & SA_RESTART))
goto no_system_call_restart; goto no_system_call_restart;
/* fallthrough */ fallthrough;
case ERESTARTNOINTR: case ERESTARTNOINTR:
regs->u_regs[UREG_I0] = orig_i0; regs->u_regs[UREG_I0] = orig_i0;
regs->tpc -= 4; regs->tpc -= 4;
...@@ -686,7 +686,7 @@ void do_signal32(struct pt_regs * regs) ...@@ -686,7 +686,7 @@ void do_signal32(struct pt_regs * regs)
regs->tpc -= 4; regs->tpc -= 4;
regs->tnpc -= 4; regs->tnpc -= 4;
pt_regs_clear_syscall(regs); pt_regs_clear_syscall(regs);
/* fall through */ fallthrough;
case ERESTART_RESTARTBLOCK: case ERESTART_RESTARTBLOCK:
regs->u_regs[UREG_G1] = __NR_restart_syscall; regs->u_regs[UREG_G1] = __NR_restart_syscall;
regs->tpc -= 4; regs->tpc -= 4;
......
...@@ -441,7 +441,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, ...@@ -441,7 +441,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs,
case ERESTARTSYS: case ERESTARTSYS:
if (!(sa->sa_flags & SA_RESTART)) if (!(sa->sa_flags & SA_RESTART))
goto no_system_call_restart; goto no_system_call_restart;
/* fallthrough */ fallthrough;
case ERESTARTNOINTR: case ERESTARTNOINTR:
regs->u_regs[UREG_I0] = orig_i0; regs->u_regs[UREG_I0] = orig_i0;
regs->pc -= 4; regs->pc -= 4;
...@@ -507,7 +507,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0) ...@@ -507,7 +507,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
regs->pc -= 4; regs->pc -= 4;
regs->npc -= 4; regs->npc -= 4;
pt_regs_clear_syscall(regs); pt_regs_clear_syscall(regs);
/* fall through */ fallthrough;
case ERESTART_RESTARTBLOCK: case ERESTART_RESTARTBLOCK:
regs->u_regs[UREG_G1] = __NR_restart_syscall; regs->u_regs[UREG_G1] = __NR_restart_syscall;
regs->pc -= 4; regs->pc -= 4;
......
...@@ -461,7 +461,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, ...@@ -461,7 +461,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs,
case ERESTARTSYS: case ERESTARTSYS:
if (!(sa->sa_flags & SA_RESTART)) if (!(sa->sa_flags & SA_RESTART))
goto no_system_call_restart; goto no_system_call_restart;
/* fallthrough */ fallthrough;
case ERESTARTNOINTR: case ERESTARTNOINTR:
regs->u_regs[UREG_I0] = orig_i0; regs->u_regs[UREG_I0] = orig_i0;
regs->tpc -= 4; regs->tpc -= 4;
...@@ -532,7 +532,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0) ...@@ -532,7 +532,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
regs->tpc -= 4; regs->tpc -= 4;
regs->tnpc -= 4; regs->tnpc -= 4;
pt_regs_clear_syscall(regs); pt_regs_clear_syscall(regs);
/* fall through */ fallthrough;
case ERESTART_RESTARTBLOCK: case ERESTART_RESTARTBLOCK:
regs->u_regs[UREG_G1] = __NR_restart_syscall; regs->u_regs[UREG_G1] = __NR_restart_syscall;
regs->tpc -= 4; regs->tpc -= 4;
......
...@@ -359,7 +359,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs) ...@@ -359,7 +359,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
*pfsr |= (6 << 14); *pfsr |= (6 << 14);
return 0; /* simulate invalid_fp_register exception */ return 0; /* simulate invalid_fp_register exception */
} }
/* fall through */ fallthrough;
case 2: case 2:
if (freg & 1) { /* doublewords must have bit 5 zeroed */ if (freg & 1) { /* doublewords must have bit 5 zeroed */
*pfsr |= (6 << 14); *pfsr |= (6 << 14);
...@@ -380,7 +380,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs) ...@@ -380,7 +380,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
*pfsr |= (6 << 14); *pfsr |= (6 << 14);
return 0; /* simulate invalid_fp_register exception */ return 0; /* simulate invalid_fp_register exception */
} }
/* fall through */ fallthrough;
case 2: case 2:
if (freg & 1) { /* doublewords must have bit 5 zeroed */ if (freg & 1) { /* doublewords must have bit 5 zeroed */
*pfsr |= (6 << 14); *pfsr |= (6 << 14);
...@@ -408,13 +408,13 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs) ...@@ -408,13 +408,13 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
*pfsr |= (6 << 14); *pfsr |= (6 << 14);
return 0; /* simulate invalid_fp_register exception */ return 0; /* simulate invalid_fp_register exception */
} }
/* fall through */ fallthrough;
case 2: case 2:
if (freg & 1) { /* doublewords must have bit 5 zeroed */ if (freg & 1) { /* doublewords must have bit 5 zeroed */
*pfsr |= (6 << 14); *pfsr |= (6 << 14);
return 0; return 0;
} }
/* fall through */ fallthrough;
case 1: case 1:
rd = (void *)&fregs[freg]; rd = (void *)&fregs[freg];
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment