summaryrefslogtreecommitdiffstats
path: root/arch/mn10300
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-08-04 12:21:23 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-05 02:22:17 +0200
commit18f6db95dcfa68e93bafe435381299abbffb5c7e (patch)
tree371a929eccc515ce567245354c57df1b1ab20649 /arch/mn10300
parentMerge branch 'audit.b56' of git://git.kernel.org/pub/scm/linux/kernel/git/vir... (diff)
downloadlinux-18f6db95dcfa68e93bafe435381299abbffb5c7e.tar.xz
linux-18f6db95dcfa68e93bafe435381299abbffb5c7e.zip
mn10300: Fix up __bug_table handling in module loader.
Platforms that are using GENERIC_BUG must call in to module_bug_finalize()/module_bug_cleanup() in order to scan modules with their own __bug_table sections that are otherwise unaccounted. Signed-off-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300')
-rw-r--r--arch/mn10300/kernel/module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mn10300/kernel/module.c b/arch/mn10300/kernel/module.c
index 0e4d2f6fa6e8..8fa36893df7a 100644
--- a/arch/mn10300/kernel/module.c
+++ b/arch/mn10300/kernel/module.c
@@ -24,6 +24,7 @@
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/kernel.h>
+#include <linux/bug.h>
#if 0
#define DEBUGP printk
@@ -195,7 +196,7 @@ int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *me)
{
- return 0;
+ return module_bug_finalize(hdr, sechdrs, me);
}
/*
@@ -203,4 +204,5 @@ int module_finalize(const Elf_Ehdr *hdr,
*/
void module_arch_cleanup(struct module *mod)
{
+ module_bug_cleanup(mod);
}