aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/marker.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-16 09:50:34 +0100
committerIngo Molnar <mingo@elte.hu>2008-11-16 09:52:03 +0100
commit227a837567e339c74d9d4243d03a29bd943a018c (patch)
tree21fd0955eb46f838c2a8a1a9bc6671270ffdaf3d /kernel/marker.c
parenttracepoints: format documentation (diff)
downloadlinux-dev-227a837567e339c74d9d4243d03a29bd943a018c.tar.xz
linux-dev-227a837567e339c74d9d4243d03a29bd943a018c.zip
markers/tracpoints: fix non-modular build
fix: kernel/marker.c: In function 'marker_module_notify': kernel/marker.c:905: error: 'MODULE_STATE_COMING' undeclared (first use in this function) [...] Signed-off-by: Ingo Molnar <mingo@elte.hu>
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,
}
EXPORT_SYMBOL_GPL(marker_get_private_data);
+#ifdef CONFIG_MODULES
+
int marker_module_notify(struct notifier_block *self,
unsigned long val, void *data)
{
@@ -924,3 +926,5 @@ static int init_markers(void)
return register_module_notifier(&marker_module_nb);
}
__initcall(init_markers);
+
+#endif /* CONFIG_MODULES */