Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: skbuff: Remove unused skb_add_data()

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>
Link: https://patch.msgid.link/20250312063450.183652-1-yuehaibing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Yue Haibing and committed by
Paolo Abeni
24faa63b 15f9e34a

-19
-19
include/linux/skbuff.h
··· 3867 3867 bool csum_and_copy_from_iter_full(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i) 3868 3868 __must_check; 3869 3869 3870 - static inline int skb_add_data(struct sk_buff *skb, 3871 - struct iov_iter *from, int copy) 3872 - { 3873 - const int off = skb->len; 3874 - 3875 - if (skb->ip_summed == CHECKSUM_NONE) { 3876 - __wsum csum = 0; 3877 - if (csum_and_copy_from_iter_full(skb_put(skb, copy), copy, 3878 - &csum, from)) { 3879 - skb->csum = csum_block_add(skb->csum, csum, off); 3880 - return 0; 3881 - } 3882 - } else if (copy_from_iter_full(skb_put(skb, copy), copy, from)) 3883 - return 0; 3884 - 3885 - __skb_trim(skb, off); 3886 - return -EFAULT; 3887 - } 3888 - 3889 3870 static inline bool skb_can_coalesce(struct sk_buff *skb, int i, 3890 3871 const struct page *page, int off) 3891 3872 {