From: Jérémie Galarneau Date: Tue, 26 Feb 2019 16:21:14 +0000 (-0500) Subject: Clean-up: hide internal kernel_consumer_add_channel() symbol X-Git-Tag: v2.11.0-rc2~51 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=606b643e5bb8fd54834bf6b2126ab3af31688b5a;p=lttng-tools.git Clean-up: hide internal kernel_consumer_add_channel() symbol kernel_consumer_add_channel() is not used outside of kernel-consumer.c. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/kernel-consumer.c b/src/bin/lttng-sessiond/kernel-consumer.c index 9ccad8be4..1368dc163 100644 --- a/src/bin/lttng-sessiond/kernel-consumer.c +++ b/src/bin/lttng-sessiond/kernel-consumer.c @@ -107,6 +107,7 @@ error: /* * Sending a single channel to the consumer with command ADD_CHANNEL. */ +static int kernel_consumer_add_channel(struct consumer_socket *sock, struct ltt_kernel_channel *channel, struct ltt_kernel_session *ksession, diff --git a/src/bin/lttng-sessiond/kernel-consumer.h b/src/bin/lttng-sessiond/kernel-consumer.h index 64f000e5b..16b335af7 100644 --- a/src/bin/lttng-sessiond/kernel-consumer.h +++ b/src/bin/lttng-sessiond/kernel-consumer.h @@ -31,10 +31,6 @@ int kernel_consumer_send_session(struct consumer_socket *sock, int kernel_consumer_add_metadata(struct consumer_socket *sock, struct ltt_kernel_session *session, unsigned int monitor); -int kernel_consumer_add_channel(struct consumer_socket *sock, - struct ltt_kernel_channel *channel, struct ltt_kernel_session *session, - unsigned int monitor); - int kernel_consumer_destroy_channel(struct consumer_socket *socket, struct ltt_kernel_channel *channel);