From: Jérémie Galarneau Date: Wed, 29 May 2024 18:32:44 +0000 (+0000) Subject: clang-tidy: sessiond: superfluous static specifier X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=62256275eae6b397d25d43ad2ffd5d30cee2764d;p=lttng-tools.git clang-tidy: sessiond: superfluous static specifier clang-tidy reports: 'get_session_registry' is a static definition in anonymous namespace; static is redundant here Remove the redundant static specifier. Change-Id: Iae7be221cde1f0789d3c3a560f1ea70d4d4e5e7a Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-app.cpp b/src/bin/lttng-sessiond/ust-app.cpp index 8f0375bc5..6e7b3f5e1 100644 --- a/src/bin/lttng-sessiond/ust-app.cpp +++ b/src/bin/lttng-sessiond/ust-app.cpp @@ -85,7 +85,7 @@ namespace { * A registry per UID object MUST exists before calling this function or else * it LTTNG_ASSERT() if not found. RCU read side lock must be acquired. */ -static lsu::registry_session *get_session_registry(const struct ust_app_session *ua_sess) +lsu::registry_session *get_session_registry(const struct ust_app_session *ua_sess) { lsu::registry_session *registry = nullptr;