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.12.0-rc1~636 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=ba27cd0052c3d29b84b8c157fe5969b6a086f09f 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);