skbuff: remove unused skb_zcopy_abort function
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 6 Jan 2021 22:18:29 +0000 (14:18 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Jan 2021 00:06:37 +0000 (16:06 -0800)
skb_zcopy_abort() has no in-tree consumers, remove it.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h

index 333bcdc..3ca8d7c 100644 (file)
@@ -1490,17 +1490,6 @@ static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy)
        }
 }
 
-/* Abort a zerocopy operation and revert zckey on error in send syscall */
-static inline void skb_zcopy_abort(struct sk_buff *skb)
-{
-       struct ubuf_info *uarg = skb_zcopy(skb);
-
-       if (uarg) {
-               sock_zerocopy_put_abort(uarg, false);
-               skb_shinfo(skb)->tx_flags &= ~SKBTX_ZEROCOPY_FRAG;
-       }
-}
-
 static inline void skb_mark_not_on_list(struct sk_buff *skb)
 {
        skb->next = NULL;