Skip to content

Commit 866d571

Browse files
Martin KaFai LauAlexei Starovoitov
authored andcommitted
bpf: Export bpf_base_func_proto
The bpf_testmod needs to use the bpf_tail_call helper in a later selftest patch. This patch is to EXPORT_GPL_SYMBOL the bpf_base_func_proto. Signed-off-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 169c317 commit 866d571

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/bpf/helpers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,7 @@ bpf_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
20342034
return NULL;
20352035
}
20362036
}
2037+
EXPORT_SYMBOL_GPL(bpf_base_func_proto);
20372038

20382039
void bpf_list_head_free(const struct btf_field *field, void *list_head,
20392040
struct bpf_spin_lock *spin_lock)

0 commit comments

Comments
 (0)