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

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: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aecc63ae
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -87,7 +87,6 @@ void auxio_set_lte(int on)
		__auxio_sbus_set_lte(on);
		break;
	case AUXIO_TYPE_EBUS:
		/* FALL-THROUGH */
	default:
		break;
	}
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ static int clock_board_calc_nslots(struct clock_board *p)
			else
				return 5;
		}
		/* Fallthrough */
		fallthrough;
	default:
		return 4;
	}
+1 −1
Original line number Diff line number Diff line
@@ -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':
+1 −1
Original line number Diff line number Diff line
@@ -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':
+1 −1
Original line number Diff line number Diff line
@@ -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;
Loading