projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
982fb49
)
skb_array: minor tweak
author
Jason Wang
<
[email protected]
>
Thu, 30 Jun 2016 06:45:32 +0000
(14:45 +0800)
committer
David S. Miller
<
[email protected]
>
Fri, 1 Jul 2016 09:32:16 +0000
(
05:32
-0400)
Signed-off-by: Michael S. Tsirkin <
[email protected]
>
Signed-off-by: Jason Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/linux/skb_array.h
patch
|
blob
|
history
diff --git
a/include/linux/skb_array.h
b/include/linux/skb_array.h
index 678bfbf78ac4309736c88811d22a8b44923be651..2dd0d1e4ee7ecba9726b841e9df948c55d3f68b2 100644
(file)
--- 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);
}