(unsigned long)event < (unsigned long)end; \
event++)
+#ifdef CONFIG_MODULES
static void trace_module_add_events(struct module *mod)
{
struct ftrace_event_call *call, *start, *end;
}
}
-int trace_module_notify(struct notifier_block *self,
- unsigned long val, void *data)
+static int trace_module_notify(struct notifier_block *self,
+ unsigned long val, void *data)
{
struct module *mod = data;
return 0;
}
+#else
+static int trace_module_notify(struct notifier_block *self,
+ unsigned long val, void *data)
+{
+ return 0;
+}
+#endif /* CONFIG_MODULES */
struct notifier_block trace_module_nb = {
.notifier_call = trace_module_notify,