aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/marker.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/marker.c')
-rw-r--r--kernel/marker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/marker.c b/kernel/marker.c
index c14ec26a9b9f..ea54f2647868 100644
--- a/kernel/marker.c
+++ b/kernel/marker.c
@@ -896,6 +896,8 @@ void *marker_get_private_data(const char *name, marker_probe_func *probe,
896} 896}
897EXPORT_SYMBOL_GPL(marker_get_private_data); 897EXPORT_SYMBOL_GPL(marker_get_private_data);
898 898
899#ifdef CONFIG_MODULES
900
899int marker_module_notify(struct notifier_block *self, 901int marker_module_notify(struct notifier_block *self,
900 unsigned long val, void *data) 902 unsigned long val, void *data)
901{ 903{
@@ -924,3 +926,5 @@ static int init_markers(void)
924 return register_module_notifier(&marker_module_nb); 926 return register_module_notifier(&marker_module_nb);
925} 927}
926__initcall(init_markers); 928__initcall(init_markers);
929
930#endif /* CONFIG_MODULES */