From 135c4073035ae7a8a691caca4b09481c6fd5adb0 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Mon, 17 Aug 2015 16:29:33 -0400 Subject: [PATCH] dtrace: only call dtrace functions when CONFIG_DTRACE is set The call to dtrace_sdt_register_module() in complete_formation() should only be done when CONFIG_DTRACE is set. Orabug: 21647525 Signed-off-by: Kris Van Hees Acked-by: Santosh Shilimkar --- kernel/module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/module.c b/kernel/module.c index fb4149f42423..f696197b5174 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3202,7 +3202,9 @@ static int complete_formation(struct module *mod, struct load_info *info) { int err; +#ifdef CONFIG_DTRACE dtrace_sdt_register_module(mod); +#endif mutex_lock(&module_mutex); -- 2.50.1