[PATCH] kprobes: remove redundant config check

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Abhishek Sagar
Date: Tuesday, June 10, 2008 - 10:13 am

Hi,

I noticed that there's a CONFIG_KPROBES check inside kernel/kprobes.c,
which seems redundant. Can be removed?

Diff'd against v2.6.26-rc5.


Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>
---
remove redundant CONFIG_KPROBES check.

diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 1e0250c..2b2cae2 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -1283,13 +1283,8 @@ EXPORT_SYMBOL_GPL(register_jprobe);
 EXPORT_SYMBOL_GPL(unregister_jprobe);
 EXPORT_SYMBOL_GPL(register_jprobes);
 EXPORT_SYMBOL_GPL(unregister_jprobes);
-#ifdef CONFIG_KPROBES
 EXPORT_SYMBOL_GPL(jprobe_return);
-#endif
-
-#ifdef CONFIG_KPROBES
 EXPORT_SYMBOL_GPL(register_kretprobe);
 EXPORT_SYMBOL_GPL(unregister_kretprobe);
 EXPORT_SYMBOL_GPL(register_kretprobes);
 EXPORT_SYMBOL_GPL(unregister_kretprobes);
-#endif
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] kprobes: remove redundant config check, Abhishek Sagar, (Tue Jun 10, 10:13 am)
Re: [PATCH] kprobes: remove redundant config check, Masami Hiramatsu, (Tue Jun 10, 12:35 pm)
Re: [PATCH] kprobes: remove redundant config check, Ananth N Mavinakayan ..., (Tue Jun 10, 8:59 pm)
Re: [PATCH] kprobes: remove redundant config check, Abhishek Sagar, (Tue Jun 10, 10:53 pm)