skb_array: minor tweak
authorJason Wang <jasowang@redhat.com>
Thu, 30 Jun 2016 06:45:32 +0000 (14:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 09:32:16 +0000 (05:32 -0400)
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skb_array.h

index 678bfbf78ac4309736c88811d22a8b44923be651..2dd0d1e4ee7ecba9726b841e9df948c55d3f68b2 100644 (file)
@@ -151,12 +151,12 @@ static inline int skb_array_init(struct skb_array *a, int size, gfp_t gfp)
        return ptr_ring_init(&a->ring, size, gfp);
 }
 
-void __skb_array_destroy_skb(void *ptr)
+static void __skb_array_destroy_skb(void *ptr)
 {
        kfree_skb(ptr);
 }
 
-int skb_array_resize(struct skb_array *a, int size, gfp_t gfp)
+static inline int skb_array_resize(struct skb_array *a, int size, gfp_t gfp)
 {
        return ptr_ring_resize(&a->ring, size, gfp, __skb_array_destroy_skb);
 }