treewide: 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/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
parent
d012a7190f
commit
df561f6688
1148 changed files with 2667 additions and 2737 deletions
|
|
@ -745,7 +745,7 @@ int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg)
|
|||
#endif
|
||||
case BLKTRACESTART:
|
||||
start = 1;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case BLKTRACESTOP:
|
||||
ret = __blk_trace_startstop(q, start);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ predicate_parse(const char *str, int nr_parens, int nr_preds,
|
|||
ptr++;
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
default:
|
||||
parse_error(pe, FILT_ERR_TOO_MANY_PREDS,
|
||||
next - str);
|
||||
|
|
@ -1273,7 +1273,7 @@ static int parse_pred(const char *str, void *data,
|
|||
switch (op) {
|
||||
case OP_NE:
|
||||
pred->not = 1;
|
||||
/* Fall through */
|
||||
fallthrough;
|
||||
case OP_GLOB:
|
||||
case OP_EQ:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue