summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2016-06-30 09:45:32 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-01 12:32:16 +0300
commitfd68adec9de3104c236ffbcb3bd829d3e635a444 (patch)
tree6cc9fc6b0edcd4df71f314e65f3f648a4d804fef /include
parent982fb490c298896d15e9323a882f34a57c11ff56 (diff)
downloadlinux-fd68adec9de3104c236ffbcb3bd829d3e635a444.tar.xz
skb_array: minor tweak
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skb_array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h
index 678bfbf78ac4..2dd0d1e4ee7e 100644
--- a/include/linux/skb_array.h
+++ b/include/linux/skb_array.h
@@ -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);
}