summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Xu <dxu@dxuuu.xyz>2022-09-20 16:15:22 +0200
committerMartin KaFai Lau <martin.lau@kernel.org>2022-09-20 23:30:34 +0200
commit52bdae37c92ae10d47d54bd7cd39e0a17547ebfa (patch)
treec15b125c0302e9351617ba698607d95fc6f7e6f1 /include
parentbpf: Check whether or not node is NULL before free it in free_bulk (diff)
downloadlinux-52bdae37c92ae10d47d54bd7cd39e0a17547ebfa.tar.xz
linux-52bdae37c92ae10d47d54bd7cd39e0a17547ebfa.zip
bpf: Remove unused btf_struct_access stub
This stub was not being used anywhere. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz> Link: https://lore.kernel.org/r/590e7bd6172ffe0f3d7b51cd40e8ded941aaf7e8.1663683114.git.dxu@dxuuu.xyz Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/nf_conntrack_bpf.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/net/netfilter/nf_conntrack_bpf.h b/include/net/netfilter/nf_conntrack_bpf.h
index a61a93d1c6dc..9c07d2d59da5 100644
--- a/include/net/netfilter/nf_conntrack_bpf.h
+++ b/include/net/netfilter/nf_conntrack_bpf.h
@@ -3,8 +3,6 @@
#ifndef _NF_CONNTRACK_BPF_H
#define _NF_CONNTRACK_BPF_H
-#include <linux/bpf.h>
-#include <linux/btf.h>
#include <linux/kconfig.h>
#include <linux/mutex.h>
@@ -31,16 +29,6 @@ static inline void cleanup_nf_conntrack_bpf(void)
{
}
-static inline int nf_conntrack_btf_struct_access(struct bpf_verifier_log *log,
- const struct btf *btf,
- const struct btf_type *t, int off,
- int size, enum bpf_access_type atype,
- u32 *next_btf_id,
- enum bpf_type_flag *flag)
-{
- return -EACCES;
-}
-
#endif
#endif /* _NF_CONNTRACK_BPF_H */