Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756372AbYFJROb (ORCPT ); Tue, 10 Jun 2008 13:14:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753856AbYFJRN7 (ORCPT ); Tue, 10 Jun 2008 13:13:59 -0400 Received: from ug-out-1314.google.com ([66.249.92.174]:31352 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753589AbYFJRN5 (ORCPT ); Tue, 10 Jun 2008 13:13:57 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=UZt2i6K4tTlxLelctvdHcN1AVU/IL9aajdTFi8SwMuwok7Fo/FBzsTeWn6vbXnX8Nb EIBjvu8TQrnBOgZWJ47dcNMOJGee09PSRbVcUC1PBrsRSGM9TaebwTyswtuG0nDaSicI PcrxvaS0qkBmyOdqWwUc+Z1sjCQ6DZ8YgnjJM= Message-ID: <484EB61E.7050509@gmail.com> Date: Tue, 10 Jun 2008 22:43:02 +0530 From: Abhishek Sagar User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: LKML CC: ananth@in.ibm.com, Masami Hiramatsu , akpm@linux-foundation.org Subject: [PATCH] kprobes: remove redundant config check Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 35 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 --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/