Function attributes should be located after the declaration.
Change-Id: Iad766f5861a6b2de0d9dd3a0f87909ed7f8dc092
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
__tracepoint__init_urcu_sym();
}
-static void lttng_ust_notrace __attribute__((destructor))
-__tracepoints__destroy(void);
+static void
+__tracepoints__destroy(void)
+ lttng_ust_notrace __attribute__((destructor));
static void
__tracepoints__destroy(void)
{
}
}
-static void lttng_ust_notrace __attribute__((destructor))
-__tracepoints__ptrs_destroy(void);
+static void
+__tracepoints__ptrs_destroy(void)
+ lttng_ust_notrace __attribute__((destructor));
static void
__tracepoints__ptrs_destroy(void)
{
}
}
-static void lttng_ust_notrace __attribute__((destructor))
-_TP_COMBINE_TOKENS(__lttng_events_exit__, TRACEPOINT_PROVIDER)(void);
+static void
+_TP_COMBINE_TOKENS(__lttng_events_exit__, TRACEPOINT_PROVIDER)(void)
+ lttng_ust_notrace __attribute__((destructor));
static void
_TP_COMBINE_TOKENS(__lttng_events_exit__, TRACEPOINT_PROVIDER)(void)
{
lib_ringbuffer_signal_init();
}
-static __attribute__((destructor))
+static
+void ustctl_exit(void)
+ __attribute__((destructor));
+static
void ustctl_exit(void)
{
lttng_ust_counter_clients_exit();
}
}
-void __attribute__((destructor)) lttng_ust_exit(void)
+static
+void lttng_ust_exit(void)
+ __attribute__((destructor));
+static
+void lttng_ust_exit(void)
{
int ret;
void _lttng_ust_urcu_init(void)
__attribute__((constructor));
static
-void __attribute__((destructor)) lttng_ust_urcu_exit(void);
+void lttng_ust_urcu_exit(void)
+ __attribute__((destructor));
#ifndef CONFIG_RCU_FORCE_SYS_MEMBARRIER
int lttng_ust_urcu_has_sys_membarrier;