Skip to content

Commit

Permalink
bpf: Remove unused bpf_load_pointer
Browse files Browse the repository at this point in the history
Remove unused bpf_load_pointer function in filter.h. The last user of it has
been removed with 24dea04 ("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
  • Loading branch information
He Fengqing authored and Daniel Borkmann committed Mar 30, 2021
1 parent 2976706 commit 913d550
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/linux/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 913d550

Please sign in to comment.