[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0808152354150.4450@gandalf.stny.rr.com>
Date: Fri, 15 Aug 2008 23:56:44 -0400 (EDT)
From: Steven Rostedt <rostedt@...dmis.org>
To: LKML <linux-kernel@...r.kernel.org>, linuxppc-dev@...abs.org
cc: Kumar Gala <galak@...nel.crashing.org>, paulus@...ba.org,
benh@...nel.crashing.org
Subject: [PATCH] powerpc: remove dead module_find_bug code.
Doing some various "make randconfig" and came across an error when CONFIG_BUG
was not set. Looking further in this, I found that module_find_bug, defined
in powerpc arch code, is not called anywhere.
There is a static module_find_bug in lib/bug.c but that is a separate issue.
Signed-off-by: Steven Rostedt <srostedt@...hat.com>
---
arch/powerpc/kernel/module.c | 15 ---------------
1 file changed, 15 deletions(-)
Index: linux-tip.git/arch/powerpc/kernel/module.c
===================================================================
--- linux-tip.git.orig/arch/powerpc/kernel/module.c 2008-08-15 20:18:52.000000000 -0700
+++ linux-tip.git/arch/powerpc/kernel/module.c 2008-08-15 20:18:58.000000000 -0700
@@ -99,18 +99,3 @@ void module_arch_cleanup(struct module *
{
module_bug_cleanup(mod);
}
-
-struct bug_entry *module_find_bug(unsigned long bugaddr)
-{
- struct mod_arch_specific *mod;
- unsigned int i;
- struct bug_entry *bug;
-
- list_for_each_entry(mod, &module_bug_list, bug_list) {
- bug = mod->bug_table;
- for (i = 0; i < mod->num_bugs; ++i, ++bug)
- if (bugaddr == bug->bug_addr)
- return bug;
- }
- return NULL;
-}
--
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