From 10dc2d1097e731eda1f67a13e2b40c91ee2e4c8d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Nov 2019 15:46:21 -0500 Subject: [PATCH] sessiond: make functions static in ust-registry.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: CC ust-registry.o /home/smarchi/src/lttng-tools/src/bin/lttng-sessiond/ust-registry.c:553:2: error: no previous declaration for ‘ust_registry_lookup_enum’ [-Werror=missing-declarations] ust_registry_lookup_enum(struct ust_registry_session *session, ^~~~~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/src/bin/lttng-sessiond/ust-registry.c:684:6: error: no previous declaration for ‘ust_registry_destroy_enum’ [-Werror=missing-declarations] void ust_registry_destroy_enum(struct ust_registry_session *reg_session, ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: Ibaabd16a75f0b7b13a641a571d26ca64aec5317b Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/ust-registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/lttng-sessiond/ust-registry.c b/src/bin/lttng-sessiond/ust-registry.c index 4d4094e73..7faf8b128 100644 --- a/src/bin/lttng-sessiond/ust-registry.c +++ b/src/bin/lttng-sessiond/ust-registry.c @@ -549,8 +549,8 @@ static void destroy_enum_rcu(struct rcu_head *head) * Lookup enumeration by name and comparing enumeration entries. * Needs to be called from RCU read-side critical section. */ -struct ust_registry_enum * - ust_registry_lookup_enum(struct ust_registry_session *session, +static struct ust_registry_enum *ust_registry_lookup_enum( + struct ust_registry_session *session, const struct ust_registry_enum *reg_enum_lookup) { struct ust_registry_enum *reg_enum = NULL; @@ -681,7 +681,7 @@ end: * the enumeration. * This MUST be called within a RCU read side lock section. */ -void ust_registry_destroy_enum(struct ust_registry_session *reg_session, +static void ust_registry_destroy_enum(struct ust_registry_session *reg_session, struct ust_registry_enum *reg_enum) { int ret; -- 2.34.1