lib ring buffer: add frontend init as module_init
[lttng-modules.git] / lib / ringbuffer / ring_buffer_frontend.c
index a45373b062d4bd5ae95b0519170b0c9e51224961..8eb59486f808e9f936e3b3ad42512bfd3a58655d 100644 (file)
@@ -1703,10 +1703,13 @@ int lib_ring_buffer_reserve_slow(struct lib_ring_buffer_ctx *ctx)
 }
 EXPORT_SYMBOL_GPL(lib_ring_buffer_reserve_slow);
 
-void __init init_lib_ring_buffer_frontend(void)
+int __init init_lib_ring_buffer_frontend(void)
 {
        int cpu;
 
        for_each_possible_cpu(cpu)
                spin_lock_init(&per_cpu(ring_buffer_nohz_lock, cpu));
+       return 0;
 }
+
+module_init(init_lib_ring_buffer_frontend);
This page took 0.022625 seconds and 4 git commands to generate.