cleanup: function attribute 'destructor'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 30 Mar 2021 19:35:19 +0000 (15:35 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 31 Mar 2021 18:12:42 +0000 (14:12 -0400)
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>
include/lttng/tracepoint.h
include/lttng/ust-tracepoint-event.h
liblttng-ust-ctl/ustctl.c
liblttng-ust/lttng-ust-comm.c
liblttng-ust/lttng-ust-urcu.c

index d4733e057920c1cb38acb5fb1da09268c50d548f..927b1a3cd9ef83a48ec40053506d9cce20ed9e1f 100644 (file)
@@ -369,8 +369,9 @@ __tracepoints__init(void)
        __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)
 {
@@ -501,8 +502,9 @@ __tracepoints__ptrs_init(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)
 {
index f4d3d28565376e4cc07e2678bbdff5104e56ce9d..cf7707596305b1871effda429a8cde341448979b 100644 (file)
@@ -1089,8 +1089,9 @@ _TP_COMBINE_TOKENS(__lttng_events_init__, TRACEPOINT_PROVIDER)(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)
 {
index ecfed8c77770115ef556795cf20a9b3deafbbfb0..e1c9ac7dbd3e269c884c90461e0e863577d32b75 100644 (file)
@@ -2914,7 +2914,10 @@ void ustctl_init(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();
index 69ccd99d998968b3a7e75e3fc84d00e6ecb09523..748417ab3e366a2edb827bd8668e4bdd5cb806ac 100644 (file)
@@ -2279,7 +2279,11 @@ void lttng_ust_cleanup(int exiting)
        }
 }
 
-void __attribute__((destructor)) lttng_ust_exit(void)
+static
+void lttng_ust_exit(void)
+       __attribute__((destructor));
+static
+void lttng_ust_exit(void)
 {
        int ret;
 
index 4381fd1c6868501c0083fd1528c12f653433a96c..4629067fff2c25878cfcd7f3dcc0afa600863519 100644 (file)
@@ -96,7 +96,8 @@ static
 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;
This page took 0.035227 seconds and 4 git commands to generate.