summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-12-28 18:24:28 +0000
committerDavid S. Miller <davem@davemloft.net>2012-12-28 20:32:36 -0800
commit61c5e88aecd6fbf2480f39394bb495964e6d9984 (patch)
tree39dc5ed3171c1ba60c9bf8f63e6f430ab3f841fa /net/core/skbuff.c
parentbb717d764926b8748aecd18e3531189b323f6e4d (diff)
downloadop-kernel-dev-61c5e88aecd6fbf2480f39394bb495964e6d9984.zip
op-kernel-dev-61c5e88aecd6fbf2480f39394bb495964e6d9984.tar.gz
skbuff: make __kmalloc_reserve static
Sparse detected case where this local function should be static. It may even allow some compiler optimizations. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index ec8737e..bc96100 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -155,8 +155,9 @@ static void skb_under_panic(struct sk_buff *skb, int sz, void *here)
*/
#define kmalloc_reserve(size, gfp, node, pfmemalloc) \
__kmalloc_reserve(size, gfp, node, _RET_IP_, pfmemalloc)
-void *__kmalloc_reserve(size_t size, gfp_t flags, int node, unsigned long ip,
- bool *pfmemalloc)
+
+static void *__kmalloc_reserve(size_t size, gfp_t flags, int node,
+ unsigned long ip, bool *pfmemalloc)
{
void *obj;
bool ret_pfmemalloc = false;
OpenPOWER on IntegriCloud