diff options
Diffstat (limited to 'arch/m32r/kernel/module.c')
-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 | } | ||