bpf: Move the declaration of __bpf_obj_drop_impl() to bpf.h
authorHou Tao <houtao1@huawei.com>
Fri, 20 Oct 2023 13:32:00 +0000 (21:32 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 20 Oct 2023 21:15:13 +0000 (14:15 -0700)
commite581a3461de3f129cfe888a67d9f31086328271f
tree469fb6cee50b375b8c58ba71f315bcd20849457c
parent3f2189e4f77b7a3e979d143dc4ff586488c7e8a5
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>
include/linux/bpf.h
kernel/bpf/helpers.c
kernel/bpf/syscall.c