From a1075e32c32bc39d2d8e3cb2458346c4afa6fc08 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Nov 2019 15:38:19 -0500 Subject: [PATCH] relayd: make functions static in ctf-trace.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: CC ctf-trace.o /home/smarchi/src/lttng-tools/src/bin/lttng-relayd/ctf-trace.c:47:6: error: no previous declaration for ‘ctf_trace_destroy’ [-Werror=missing-declarations] void ctf_trace_destroy(struct ctf_trace *trace) ^~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/src/bin/lttng-relayd/ctf-trace.c:62:6: error: no previous declaration for ‘ctf_trace_release’ [-Werror=missing-declarations] void ctf_trace_release(struct urcu_ref *ref) ^~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I4c7ff97b3350d2e50530fb0666c5a7d02599f99f Signed-off-by: Jérémie Galarneau --- src/bin/lttng-relayd/ctf-trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-relayd/ctf-trace.c b/src/bin/lttng-relayd/ctf-trace.c index fdd0a5d0d..7c39e8506 100644 --- a/src/bin/lttng-relayd/ctf-trace.c +++ b/src/bin/lttng-relayd/ctf-trace.c @@ -44,7 +44,7 @@ static void rcu_destroy_ctf_trace(struct rcu_head *rcu_head) * * MUST be called with the RCU read side lock. */ -void ctf_trace_destroy(struct ctf_trace *trace) +static void ctf_trace_destroy(struct ctf_trace *trace) { /* * Getting to this point, every stream referenced by that trace @@ -59,7 +59,7 @@ void ctf_trace_destroy(struct ctf_trace *trace) call_rcu(&trace->rcu_node, rcu_destroy_ctf_trace); } -void ctf_trace_release(struct urcu_ref *ref) +static void ctf_trace_release(struct urcu_ref *ref) { struct ctf_trace *trace = caa_container_of(ref, struct ctf_trace, ref); -- 2.34.1