* [PATCH net-next] net: skbuff: Remove unused skb_add_data()
@ 2025-03-12 6:34 Yue Haibing
2025-03-17 19:44 ` Simon Horman
2025-03-18 12:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Yue Haibing @ 2025-03-12 6:34 UTC (permalink / raw)
To: davem, edumazet, kuba, pabeni, horms; +Cc: netdev, linux-kernel, yuehaibing
Since commit a4ea4c477619 ("rxrpc: Don't use a ring buffer for call Tx
queue") this function is not used anymore.
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
include/linux/skbuff.h | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 14517e95a46c..bbc3b656c856 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -3865,25 +3865,6 @@ static inline int __must_check skb_put_padto(struct sk_buff *skb, unsigned int l
bool csum_and_copy_from_iter_full(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i)
__must_check;
-static inline int skb_add_data(struct sk_buff *skb,
- struct iov_iter *from, int copy)
-{
- const int off = skb->len;
-
- if (skb->ip_summed == CHECKSUM_NONE) {
- __wsum csum = 0;
- if (csum_and_copy_from_iter_full(skb_put(skb, copy), copy,
- &csum, from)) {
- skb->csum = csum_block_add(skb->csum, csum, off);
- return 0;
- }
- } else if (copy_from_iter_full(skb_put(skb, copy), copy, from))
- return 0;
-
- __skb_trim(skb, off);
- return -EFAULT;
-}
-
static inline bool skb_can_coalesce(struct sk_buff *skb, int i,
const struct page *page, int off)
{
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: skbuff: Remove unused skb_add_data()
2025-03-12 6:34 [PATCH net-next] net: skbuff: Remove unused skb_add_data() Yue Haibing
@ 2025-03-17 19:44 ` Simon Horman
2025-03-18 12:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2025-03-17 19:44 UTC (permalink / raw)
To: Yue Haibing; +Cc: davem, edumazet, kuba, pabeni, netdev, linux-kernel
On Wed, Mar 12, 2025 at 02:34:50PM +0800, Yue Haibing wrote:
> Since commit a4ea4c477619 ("rxrpc: Don't use a ring buffer for call Tx
> queue") this function is not used anymore.
>
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: skbuff: Remove unused skb_add_data()
2025-03-12 6:34 [PATCH net-next] net: skbuff: Remove unused skb_add_data() Yue Haibing
2025-03-17 19:44 ` Simon Horman
@ 2025-03-18 12:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-03-18 12:10 UTC (permalink / raw)
To: Yue Haibing; +Cc: davem, edumazet, kuba, pabeni, horms, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Wed, 12 Mar 2025 14:34:50 +0800 you wrote:
> Since commit a4ea4c477619 ("rxrpc: Don't use a ring buffer for call Tx
> queue") this function is not used anymore.
>
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> ---
> include/linux/skbuff.h | 19 -------------------
> 1 file changed, 19 deletions(-)
Here is the summary with links:
- [net-next] net: skbuff: Remove unused skb_add_data()
https://git.kernel.org/netdev/net-next/c/24faa63bcea8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-18 12:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 6:34 [PATCH net-next] net: skbuff: Remove unused skb_add_data() Yue Haibing
2025-03-17 19:44 ` Simon Horman
2025-03-18 12:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).