net: Make msg_zerocopy_alloc static
Subsystems (2)
PATCH 1/1 net: Make msg_zerocopy_alloc static
msg_zerocopy_alloc is only used by msg_zerocopy_realloc; remove the export and make static in skbuff.c
Signed-off-by David Ahern <[email protected]>
--- include/linux/skbuff.h | 1 - net/core/skbuff.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-)
include/linux/skbuff.h +0 -1
@@ -1665,7 +1665,6 @@ static inline void skb_set_end_offset(struct sk_buff *skb, unsigned int offset) }#endif -struct ubuf_info *msg_zerocopy_alloc (struct sock *sk,size_t size);struct ubuf_info *msg_zerocopy_realloc (struct sock *sk,size_t size,struct ubuf_info *uarg);
net/core/skbuff.c +1 -2
@@ -1165,7 +1165,7 @@ void mm_unaccount_pinned_pages(struct mmpin *mmp) }EXPORT_SYMBOL_GPL (mm_unaccount_pinned_pages); -struct ubuf_info *msg_zerocopy_alloc (struct sock *sk,size_t size) +static struct ubuf_info *msg_zerocopy_alloc (struct sock *sk,size_t size) {struct ubuf_info *uarg;struct sk_buff *skb;
@@ -1196,7 +1196,6 @@ struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size)return uarg; } -EXPORT_SYMBOL_GPL (msg_zerocopy_alloc);static inline struct sk_buff *skb_from_uarg (struct ubuf_info *uarg) {
Signature · 1 line
2.25.1
Quoted 4 lines · David Ahern
msg_zerocopy_allocis only used bymsg_zerocopy_realloc; remove the export and make static inskbuff.cSigned-off-by David Ahern <[email protected]>
Acked-by Jonathan Lemon <[email protected]>
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 4 May 2022 10:09:47 -0700 you wrote:
msg_zerocopy_allocis only used bymsg_zerocopy_realloc; remove the export and make static inskbuff.cSigned-off-by David Ahern <[email protected]>--- include/linux/skbuff.h | 1 - net/core/skbuff.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-)
Here is the summary with links:
- [net-next] net: Make msg_zerocopy_alloc static
https://git.kernel.org/netdev/net-next/c/c67b627e99af
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html