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>

authored by Paul Mundt and committed by Linus Torvalds 18f6db95 b13ad6f4

+3 -1
+3 -1
arch/mn10300/kernel/module.c
··· 24 24 #include <linux/fs.h> 25 25 #include <linux/string.h> 26 26 #include <linux/kernel.h> 27 + #include <linux/bug.h> 27 28 28 29 #if 0 29 30 #define DEBUGP printk ··· 196 195 const Elf_Shdr *sechdrs, 197 196 struct module *me) 198 197 { 199 - return 0; 198 + return module_bug_finalize(hdr, sechdrs, me); 200 199 } 201 200 202 201 /* ··· 204 203 */ 205 204 void module_arch_cleanup(struct module *mod) 206 205 { 206 + module_bug_cleanup(mod); 207 207 }