Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
static
int __init lttng_statedump_init(void)
{
- return wrapper_lttng_fixup_sig(THIS_MODULE);
+ /*
+ * Allow module to load even if the fixup cannot be done. This
+ * will allow seemless transition when the underlying issue fix
+ * is merged into the Linux kernel, and when tracepoint.c
+ * "tracepoint_module_notify" is turned into a static function.
+ */
+ (void) wrapper_lttng_fixup_sig(THIS_MODULE);
+ return 0;
}
module_init(lttng_statedump_init);
if (tracepoint_module_notify_sym) {
return tracepoint_module_notify_sym(nb, val, mod);
} else {
- printk(KERN_WARNING "LTTng: tracepoint_module_notify symbol lookup failed.\n");
+ printk(KERN_WARNING "LTTng: tracepoint_module_notify symbol lookup failed. It probably means you kernel don't need this work-around. Please consider upgrading LTTng modules to make this warning go away.\n");
return -ENOSYS;
}
}