summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-08-22 08:23:29 +1000
committerDavid S. Miller <davem@davemloft.net>2020-08-24 16:12:26 -0700
commitbe769db2f95861cc8c7c8fedcc71a8c39b803b10 (patch)
treeda78f5524a3903c7a3464a8fe7bb37e54cb2552f /net
parent1ee39c1448c4e0d480c5b390e2db1987561fb5c2 (diff)
downloadlinux-be769db2f95861cc8c7c8fedcc71a8c39b803b10.tar.gz
linux-be769db2f95861cc8c7c8fedcc71a8c39b803b10.tar.bz2
linux-be769db2f95861cc8c7c8fedcc71a8c39b803b10.zip
net: Get rid of consume_skb when tracing is off
The function consume_skb is only meaningful when tracing is enabled. This patch makes it conditional on CONFIG_TRACEPOINTS. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/skbuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index e18184ffa9c3..6faf73d6a0f7 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -820,6 +820,7 @@ void skb_tx_error(struct sk_buff *skb)
}
EXPORT_SYMBOL(skb_tx_error);
+#ifdef CONFIG_TRACEPOINTS
/**
* consume_skb - free an skbuff
* @skb: buffer to free
@@ -837,6 +838,7 @@ void consume_skb(struct sk_buff *skb)
__kfree_skb(skb);
}
EXPORT_SYMBOL(consume_skb);
+#endif
/**
* consume_stateless_skb - free an skbuff, assuming it is stateless