aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/tracepoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tracepoint.c')
-rw-r--r--kernel/tracepoint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 94ac4e35530d..79602740bbb5 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -542,6 +542,8 @@ void tracepoint_iter_reset(struct tracepoint_iter *iter)
542} 542}
543EXPORT_SYMBOL_GPL(tracepoint_iter_reset); 543EXPORT_SYMBOL_GPL(tracepoint_iter_reset);
544 544
545#ifdef CONFIG_MODULES
546
545int tracepoint_module_notify(struct notifier_block *self, 547int tracepoint_module_notify(struct notifier_block *self,
546 unsigned long val, void *data) 548 unsigned long val, void *data)
547{ 549{
@@ -570,3 +572,5 @@ static int init_tracepoints(void)
570 return register_module_notifier(&tracepoint_module_nb); 572 return register_module_notifier(&tracepoint_module_nb);
571} 573}
572__initcall(init_tracepoints); 574__initcall(init_tracepoints);
575
576#endif /* CONFIG_MODULES */