Message ID | 20250515013221.25503-1-yangfeng59949@163.com |
---|---|
State | Awaiting Upstream |
Headers | show |
Series | [nf-next] netfilter: bpf: Remove bpf_nf_func_proto | expand |
diff --git a/net/netfilter/nf_bpf_link.c b/net/netfilter/nf_bpf_link.c index 06b084844700..f277722f9025 100644 --- a/net/netfilter/nf_bpf_link.c +++ b/net/netfilter/nf_bpf_link.c @@ -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, };