Skip to contentSkip to conversation

net: filter: Remove unused bpf_load_pointer

PATCH Applied He Fengqing 3 participants 3 messages Mar 30, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: filter: Remove unused bpf_load_pointer

Remove unused bpf_load_pointer function in filter.h

---
 include/linux/filter.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/filter.h +0 -9
index eecfd82db648..9a09547bc7ba 100644
@@ -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;
Signature · 1 line
2.25.1
#2 lore raw
In reply to He Fengqing
This patch was applied to bpf/bpf-next.git (refs/heads/master):

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

Quoted 6 lines · On Tue, 30 Mar 2021 02:48:43 +0000 you wrote:

Remove unused bpf_load_pointer function in filter.h

---
 include/linux/filter.h | 9 ---------
 1 file changed, 9 deletions(-)

Here is the summary with links:
- [bpf-next] net: filter: Remove unused bpf_load_pointer

    https://git.kernel.org/bpf/bpf-next/c/913d55037616

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html