bpf: verifier: Use fallthrough pseudo-keyword
Subsystems (4)
PATCH 1/1 bpf: verifier: Use fallthrough pseudo-keyword
Replace /* fallthrough */ comments with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- kernel/bpf/verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/bpf/verifier.c +2 -2
@@ -2667,7 +2667,7 @@ static bool may_access_direct_pkt_data(struct bpf_verifier_env *env,case BPF_PROG_TYPE_CGROUP_SKB :if (t ==BPF_WRITE )return false; -/* fallthrough */ + fallthrough;/* Program types with direct read + write access go here! */ case BPF_PROG_TYPE_SCHED_CLS :
@@ -5432,7 +5432,7 @@ static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env,/* smin_val represents the known value */ if (known && smin_val ==0 && opcode ==BPF_ADD )break ; -/* fall-through */ + fallthrough;case PTR_TO_PACKET_END :case PTR_TO_SOCKET :case PTR_TO_SOCKET_OR_NULL :
Signature · 1 line
2.27.0
Quoted 6 lines · Gustavo A. R. Silva
Replace /* fallthrough */ comments with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
Acked-by Yonghong Song <[email protected]>