diff options
author | Jonas Bonn <jonas@southpole.se> | 2011-06-30 15:22:12 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-24 08:36:04 -0400 |
commit | 66574cc05438dd0907029075d7e6ec5ac0036fbc (patch) | |
tree | 8516792e486a535840e09b67f0831c303df3d45d /arch/m32r | |
parent | 74e08fcf7bef973512a1f813700f802a93678670 (diff) |
modules: make arch's use default loader hooks
This patch removes all the module loader hook implementations in the
architecture specific code where the functionality is the same as that
now provided by the recently added default hooks.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/kernel/module.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/arch/m32r/kernel/module.c b/arch/m32r/kernel/module.c index cb5f37d78d49..3071fe83ffc8 100644 --- a/arch/m32r/kernel/module.c +++ b/arch/m32r/kernel/module.c | |||
@@ -28,33 +28,6 @@ | |||
28 | #define DEBUGP(fmt...) | 28 | #define DEBUGP(fmt...) |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | void *module_alloc(unsigned long size) | ||
32 | { | ||
33 | if (size == 0) | ||
34 | return NULL; | ||
35 | #ifdef CONFIG_MMU | ||
36 | return vmalloc_exec(size); | ||
37 | #else | ||
38 | return vmalloc(size); | ||
39 | #endif | ||
40 | } | ||
41 | |||
42 | |||
43 | /* Free memory returned from module_alloc */ | ||
44 | void module_free(struct module *mod, void *module_region) | ||
45 | { | ||
46 | vfree(module_region); | ||
47 | } | ||
48 | |||
49 | /* We don't need anything special. */ | ||
50 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
51 | Elf_Shdr *sechdrs, | ||
52 | char *secstrings, | ||
53 | struct module *mod) | ||
54 | { | ||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | #define COPY_UNALIGNED_WORD(sw, tw, align) \ | 31 | #define COPY_UNALIGNED_WORD(sw, tw, align) \ |
59 | { \ | 32 | { \ |
60 | void *__s = &(sw), *__t = &(tw); \ | 33 | void *__s = &(sw), *__t = &(tw); \ |
@@ -243,14 +216,3 @@ int apply_relocate(Elf32_Shdr *sechdrs, | |||
243 | return 0; | 216 | return 0; |
244 | 217 | ||
245 | } | 218 | } |
246 | |||
247 | int module_finalize(const Elf_Ehdr *hdr, | ||
248 | const Elf_Shdr *sechdrs, | ||
249 | struct module *me) | ||
250 | { | ||
251 | return 0; | ||
252 | } | ||
253 | |||
254 | void module_arch_cleanup(struct module *mod) | ||
255 | { | ||
256 | } | ||