summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Fengqing <hefengqing@huawei.com>2021-03-30 02:48:43 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2021-03-30 22:37:06 +0200
commit913d55037616659c04763e756f948fcbaef0bbee (patch)
tree6ec1930e0b14c9d8e26ffb13b682a6d06950d60d
parent2976706f3408da99c0d44190a160c5e075c2ec73 (diff)
bpf: Remove unused bpf_load_pointer
Remove unused bpf_load_pointer function in filter.h. The last user of it has been removed with 24dea04767e6 ("bpf, x32: remove ld_abs/ld_ind"). Signed-off-by: He Fengqing <hefengqing@huawei.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20210330024843.3479844-1-hefengqing@huawei.com
-rw-r--r--include/linux/filter.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h
index eecfd82db648..9a09547bc7ba 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -1246,15 +1246,6 @@ static inline u16 bpf_anc_helper(const struct sock_filter *ftest)
void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb,
int k, unsigned int size);
-static inline void *bpf_load_pointer(const struct sk_buff *skb, int k,
- unsigned int size, void *buffer)
-{
- if (k >= 0)
- return skb_header_pointer(skb, k, size, buffer);
-
- return bpf_internal_load_pointer_neg_helper(skb, k, size);
-}
-
static inline int bpf_tell_extensions(void)
{
return SKF_AD_MAX;