From: Jérémie Galarneau Date: Wed, 27 Mar 2019 19:28:54 +0000 (-0400) Subject: Mark lttng_kconsumer_snapshot_channel as static X-Git-Tag: v2.12.0-rc1~640 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f72bb42fe5fb36e43df18f9df6d0d389db699170;p=lttng-tools.git Mark lttng_kconsumer_snapshot_channel as static lttng_kconsumer_snapshot_channel() is not used outside of kernel-consumer.c. It should therefore not be exported outside of this TU. Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 9bed7b55b..246ae6b59 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -129,8 +129,10 @@ int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream, * * Returns 0 on success, < 0 on error */ -int lttng_kconsumer_snapshot_channel(struct lttng_consumer_channel *channel, - uint64_t key, char *path, uint64_t relayd_id, uint64_t nb_packets_per_stream, +static int lttng_kconsumer_snapshot_channel( + struct lttng_consumer_channel *channel, + uint64_t key, char *path, uint64_t relayd_id, + uint64_t nb_packets_per_stream, struct lttng_consumer_local_data *ctx) { int ret;