Skip to content

Commit 8b6dd98

Browse files
Abhishek Sagartorvalds
authored andcommitted
kprobes: remove redundant config check
I noticed that there's a CONFIG_KPROBES check inside kernel/kprobes.c, which is redundant. Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com> Acked-by: Masami Hiramatsu <mhiramat@redhat.com> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ef53d9c commit 8b6dd98

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

kernel/kprobes.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,13 +1337,8 @@ EXPORT_SYMBOL_GPL(register_jprobe);
13371337
EXPORT_SYMBOL_GPL(unregister_jprobe);
13381338
EXPORT_SYMBOL_GPL(register_jprobes);
13391339
EXPORT_SYMBOL_GPL(unregister_jprobes);
1340-
#ifdef CONFIG_KPROBES
13411340
EXPORT_SYMBOL_GPL(jprobe_return);
1342-
#endif
1343-
1344-
#ifdef CONFIG_KPROBES
13451341
EXPORT_SYMBOL_GPL(register_kretprobe);
13461342
EXPORT_SYMBOL_GPL(unregister_kretprobe);
13471343
EXPORT_SYMBOL_GPL(register_kretprobes);
13481344
EXPORT_SYMBOL_GPL(unregister_kretprobes);
1349-
#endif

0 commit comments

Comments
 (0)