Skip to content

Commit 8731745

Browse files
GustavoARSilvaborkmann
authored andcommitted
bpf, verifier: Use fallthrough pseudo-keyword
Replace /* fallthrough */ comments with the new pseudo-keyword macro fallthrough [1]. [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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/20201002234217.GA12280@embeddedor
1 parent b75597d commit 8731745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/bpf/verifier.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,7 +2673,7 @@ static bool may_access_direct_pkt_data(struct bpf_verifier_env *env,
26732673
case BPF_PROG_TYPE_CGROUP_SKB:
26742674
if (t == BPF_WRITE)
26752675
return false;
2676-
/* fallthrough */
2676+
fallthrough;
26772677

26782678
/* Program types with direct read + write access go here! */
26792679
case BPF_PROG_TYPE_SCHED_CLS:
@@ -5475,7 +5475,7 @@ static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env,
54755475
/* smin_val represents the known value */
54765476
if (known && smin_val == 0 && opcode == BPF_ADD)
54775477
break;
5478-
/* fall-through */
5478+
fallthrough;
54795479
case PTR_TO_PACKET_END:
54805480
case PTR_TO_SOCKET:
54815481
case PTR_TO_SOCKET_OR_NULL:

0 commit comments

Comments
 (0)