aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2023-08-09 22:05:56 +0800
committerMartin KaFai Lau <martin.lau@kernel.org>2023-08-11 20:39:40 -0700
commit01b8539655635288dcd46366806abfacbb9b1f6c (patch)
tree354ff8e490b183191a9056341fb98827dbc6b2ee
parent6231e47b6fadf42da2e7a45b8272e80aed53c444 (diff)
downloadnf-next-01b8539655635288dcd46366806abfacbb9b1f6c.tar.gz
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>
-rw-r--r--include/linux/bpf.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index db3fe5a61b0588..cfabbcf47bdb89 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -2120,7 +2120,6 @@ void bpf_link_cleanup(struct bpf_link_primer *primer);
void bpf_link_inc(struct bpf_link *link);
void bpf_link_put(struct bpf_link *link);
int bpf_link_new_fd(struct bpf_link *link);
-struct file *bpf_link_new_file(struct bpf_link *link, int *reserved_fd);
struct bpf_link *bpf_link_get_from_fd(u32 ufd);
struct bpf_link *bpf_link_get_curr_or_next(u32 *id);