Skip to contentSkip to conversation

Fix: Use fs_initcall instead of rootfs_initcall

PATCH Mathieu Desnoyers 1 participant 1 message Jul 28, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw
Quoted 3 lines · ----- On Jul 28, 2016, at 12:12 PM, Michael Jeanson [email protected] 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

Quoted 22 lines

---
tests/clock-plugin/lttng-clock-plugin-test.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
tests/clock-plugin/lttng-clock-plugin-test.c +1 -1
index bf81932..55facb7 100644
@@ -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

Signature · 7 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev