From ba27cd0052c3d29b84b8c157fe5969b6a086f09f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 26 Feb 2019 11:21:14 -0500 Subject: [PATCH] Clean-up: hide internal kernel_consumer_add_channel() symbol MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit kernel_consumer_add_channel() is not used outside of kernel-consumer.c. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/kernel-consumer.c | 1 + src/bin/lttng-sessiond/kernel-consumer.h | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) 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); -- 2.34.1