net: Get rid of consume_skb when tracing is off
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 22:23:29 +0000 (08:23 +1000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2020 23:12:26 +0000 (16:12 -0700)
commitbe769db2f95861cc8c7c8fedcc71a8c39b803b10
treeda78f5524a3903c7a3464a8fe7bb37e54cb2552f
parent1ee39c1448c4e0d480c5b390e2db1987561fb5c2
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>
include/linux/skbuff.h
net/core/skbuff.c