diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-08-04 00:32:04 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-08-04 00:32:04 -0400 |
commit | 3108cf061228c2c2951006c80fb6fe832000adda (patch) | |
tree | dbd4c197bf3b8169ca54cede971bb4c15e68d4d8 /arch | |
parent | b5ed042249cb5f76a428aa40ca219d591dad9eea (diff) |
sh: Fix up __bug_table handling in module loader.
We should be calling in to the lib/bug.c module helpers, fix that up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 5482e65375a9..6ba2b79b826b 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/moduleloader.h> | 27 | #include <linux/moduleloader.h> |
28 | #include <linux/elf.h> | 28 | #include <linux/elf.h> |
29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
30 | #include <linux/bug.h> | ||
30 | #include <linux/fs.h> | 31 | #include <linux/fs.h> |
31 | #include <linux/string.h> | 32 | #include <linux/string.h> |
32 | #include <linux/kernel.h> | 33 | #include <linux/kernel.h> |
@@ -145,9 +146,10 @@ int module_finalize(const Elf_Ehdr *hdr, | |||
145 | const Elf_Shdr *sechdrs, | 146 | const Elf_Shdr *sechdrs, |
146 | struct module *me) | 147 | struct module *me) |
147 | { | 148 | { |
148 | return 0; | 149 | return module_bug_finalize(hdr, sechdrs, me); |
149 | } | 150 | } |
150 | 151 | ||
151 | void module_arch_cleanup(struct module *mod) | 152 | void module_arch_cleanup(struct module *mod) |
152 | { | 153 | { |
154 | module_bug_cleanup(mod); | ||
153 | } | 155 | } |