From: Michael Jeanson Date: Thu, 28 Jul 2016 16:12:11 +0000 (-0400) Subject: Fix: Use fs_initcall instead of rootfs_initcall X-Git-Tag: v2.8.1~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9f938ffaa7602896350537150aba93dfa16e811d;p=lttng-modules.git Fix: Use fs_initcall instead of rootfs_initcall The rootfs_initcall for drivers built as modules was only introduced in kernel 3.14 by commit b46d0c46ccaa366a5bb8ac709fdf2bcaa76221fd. Use fs_initcall instead which comes just before and exists in older kernels. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/clock-plugin/lttng-clock-plugin-test.c b/tests/clock-plugin/lttng-clock-plugin-test.c index bf819329..55facb77 100644 --- a/tests/clock-plugin/lttng-clock-plugin-test.c +++ b/tests/clock-plugin/lttng-clock-plugin-test.c @@ -67,7 +67,7 @@ int lttng_clock_plugin_init(void) { return lttng_clock_register_plugin(<c, THIS_MODULE); } -rootfs_initcall(lttng_clock_plugin_init); +fs_initcall(lttng_clock_plugin_init); static __exit void lttng_clock_plugin_exit(void)