Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf: Remove unused declaration bpf_link_new_file()

Commit a3b80e107894 ("bpf: Allocate ID for bpf_link")
removed the implementation but not the declaration.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20230809140556.45836-1-yuehaibing@huawei.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>

authored by

Yue Haibing and committed by
Martin KaFai Lau
01b85396 6231e47b

-1
-1
include/linux/bpf.h
··· 2120 2120 void bpf_link_inc(struct bpf_link *link); 2121 2121 void bpf_link_put(struct bpf_link *link); 2122 2122 int bpf_link_new_fd(struct bpf_link *link); 2123 - struct file *bpf_link_new_file(struct bpf_link *link, int *reserved_fd); 2124 2123 struct bpf_link *bpf_link_get_from_fd(u32 ufd); 2125 2124 struct bpf_link *bpf_link_get_curr_or_next(u32 *id); 2126 2125