From: Simon Marchi Date: Mon, 25 Nov 2019 20:38:19 +0000 (-0500) Subject: relayd: make functions static in ctf-trace.c X-Git-Tag: v2.12.0-rc1~200 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a1075e32c32bc39d2d8e3cb2458346c4afa6fc08;p=lttng-tools.git relayd: make functions static in ctf-trace.c 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 --- 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);