netfilter: bpf: Remove bpf_nf_func_proto
Subsystems (4)
PATCH 1/1 netfilter: bpf: Remove bpf_nf_func_proto
From: Feng Yang <[email protected]>
Only use bpf_base_func_proto, so bpf_nf_func_proto can be removed
Signed-off-by Feng Yang <[email protected]>
--- net/netfilter/nf_bpf_link.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
net/netfilter/nf_bpf_link.c +1 -7
@@ -316,13 +316,7 @@ static bool nf_is_valid_access(int off, int size, enum bpf_access_type type,return false; } -static const struct bpf_func_proto * -bpf_nf_func_proto (enum bpf_func_id func_id,const struct bpf_prog *prog) -{ -return bpf_base_func_proto (func_id, prog); -} -const struct bpf_verifier_ops netfilter_verifier_ops = { .is_valid_access = nf_is_valid_access, - .get_func_proto = bpf_nf_func_proto, + .get_func_proto = bpf_base_func_proto, };
Signature · 1 line
2.43.0