From: Simon Marchi Date: Mon, 25 Nov 2019 20:46:21 +0000 (-0500) Subject: sessiond: make functions static in ust-registry.c X-Git-Tag: v2.12.0-rc1~191 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=10dc2d1097e731eda1f67a13e2b40c91ee2e4c8d;p=lttng-tools.git sessiond: make functions static in ust-registry.c 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 --- 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;