Skip to contentSkip to conversation

netfilter: bpf: Remove bpf_nf_func_proto

PATCH New Feng Yang 1 participant 1 message May 15, 2025

Subsystems (4)
lore
Share & tools
lore

Feng Yang

author
#0 lore raw

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

---
 net/netfilter/nf_bpf_link.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
net/netfilter/nf_bpf_link.c +1 -7
index 06b084844700..f277722f9025 100644
@@ -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