lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 10 Jun 2008 22:43:02 +0530
From:	Abhishek Sagar <sagar.abhishek@...il.com>
To:	LKML <linux-kernel@...r.kernel.org>
CC:	ananth@...ibm.com, Masami Hiramatsu <mhiramat@...hat.com>,
	akpm@...ux-foundation.org
Subject: [PATCH] kprobes: remove redundant config check

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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ