diff mbox series

[bpf-next] net: filter: Remove unused bpf_load_pointer

Message ID 20210330024843.3479844-1-hefengqing@huawei.com (mailing list archive)
State Accepted
Commit 913d55037616659c04763e756f948fcbaef0bbee
Delegated to: BPF
Headers show
Series [bpf-next] net: filter: Remove unused bpf_load_pointer | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present success Link
netdev/patch_count success Link
netdev/tree_selection success Clearly marked for bpf-next
netdev/subject_prefix success Link
netdev/cc_maintainers warning 1 maintainers not CCed: songliubraving@fb.com
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit success Errors and warnings before: 4277 this patch: 4277
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 15 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 4516 this patch: 4516
netdev/header_inline success Link

Commit Message

He Fengqing March 30, 2021, 2:48 a.m. UTC
Remove unused bpf_load_pointer function in filter.h

Signed-off-by: He Fengqing <hefengqing@huawei.com>
---
 include/linux/filter.h | 9 ---------
 1 file changed, 9 deletions(-)

Comments

Song Liu March 30, 2021, 6:08 p.m. UTC | #1
On Mon, Mar 29, 2021 at 7:11 PM He Fengqing <hefengqing@huawei.com> wrote:
>
> Remove unused bpf_load_pointer function in filter.h
>
> Signed-off-by: He Fengqing <hefengqing@huawei.com>

Acked-by: Song Liu <songliubraving@fb.com>

[...]
patchwork-bot+netdevbpf@kernel.org March 30, 2021, 9 p.m. UTC | #2
Hello:

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

On Tue, 30 Mar 2021 02:48:43 +0000 you wrote:
> Remove unused bpf_load_pointer function in filter.h
> 
> Signed-off-by: He Fengqing <hefengqing@huawei.com>
> ---
>  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
diff mbox series

Patch

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;