Skip to content

Commit 913d550

Browse files
hefengqingborkmann
authored andcommitted
bpf: Remove unused bpf_load_pointer
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 2976706 commit 913d550

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/linux/filter.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,15 +1246,6 @@ static inline u16 bpf_anc_helper(const struct sock_filter *ftest)
12461246
void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb,
12471247
int k, unsigned int size);
12481248

1249-
static inline void *bpf_load_pointer(const struct sk_buff *skb, int k,
1250-
unsigned int size, void *buffer)
1251-
{
1252-
if (k >= 0)
1253-
return skb_header_pointer(skb, k, size, buffer);
1254-
1255-
return bpf_internal_load_pointer_neg_helper(skb, k, size);
1256-
}
1257-
12581249
static inline int bpf_tell_extensions(void)
12591250
{
12601251
return SKF_AD_MAX;

0 commit comments

Comments
 (0)