diff mbox

[lttng-modules] Fix: Use fs_initcall instead of rootfs_initcall

Message ID 1469722331-21673-1-git-send-email-mjeanson@efficios.com
State Accepted, archived
Headers show

Commit Message

Michael Jeanson July 28, 2016, 4:12 p.m. UTC
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 <mjeanson at efficios.com>
---
 tests/clock-plugin/lttng-clock-plugin-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mathieu Desnoyers July 28, 2016, 8:52 p.m. UTC | #1
----- On Jul 28, 2016, at 12:12 PM, Michael Jeanson mjeanson at efficios.com wrote:

> 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.

merged into master and stable-2.8, thanks!

Mathieu

> 
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> tests/clock-plugin/lttng-clock-plugin-test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/clock-plugin/lttng-clock-plugin-test.c
> b/tests/clock-plugin/lttng-clock-plugin-test.c
> index bf81932..55facb7 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(&ltc, THIS_MODULE);
> }
> -rootfs_initcall(lttng_clock_plugin_init);
> +fs_initcall(lttng_clock_plugin_init);
> 
> static __exit
> void lttng_clock_plugin_exit(void)
> --
> 2.7.4
diff mbox

Patch

diff --git a/tests/clock-plugin/lttng-clock-plugin-test.c b/tests/clock-plugin/lttng-clock-plugin-test.c
index bf81932..55facb7 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(&ltc, THIS_MODULE);
 }
-rootfs_initcall(lttng_clock_plugin_init);
+fs_initcall(lttng_clock_plugin_init);
 
 static __exit
 void lttng_clock_plugin_exit(void)