diff options
author | 2023-10-20 21:32:00 +0800 | |
---|---|---|
committer | 2023-10-20 14:15:13 -0700 | |
commit | e581a3461de3f129cfe888a67d9f31086328271f (patch) | |
tree | 469fb6cee50b375b8c58ba71f315bcd20849457c /kernel/bpf/helpers.c | |
parent | bpf: Use pcpu_alloc_size() in bpf_mem_free{_rcu}() (diff) | |
download | linux-rng-e581a3461de3f129cfe888a67d9f31086328271f.tar.xz linux-rng-e581a3461de3f129cfe888a67d9f31086328271f.zip |
bpf: Move the declaration of __bpf_obj_drop_impl() to bpf.h
both syscall.c and helpers.c have the declaration of
__bpf_obj_drop_impl(), so just move it to a common header file.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20231020133202.4043247-6-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/helpers.c')
-rw-r--r-- | kernel/bpf/helpers.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index da058aead20c..c814bb44d2d1 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -1811,8 +1811,6 @@ bpf_base_func_proto(enum bpf_func_id func_id) } } -void __bpf_obj_drop_impl(void *p, const struct btf_record *rec); - void bpf_list_head_free(const struct btf_field *field, void *list_head, struct bpf_spin_lock *spin_lock) { |