diff options
Diffstat (limited to 'arch/avr32/kernel/module.c')
-rw-r--r-- | arch/avr32/kernel/module.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/avr32/kernel/module.c b/arch/avr32/kernel/module.c index a727f54d64d6..596f7305d93f 100644 --- a/arch/avr32/kernel/module.c +++ b/arch/avr32/kernel/module.c | |||
@@ -19,13 +19,6 @@ | |||
19 | #include <linux/moduleloader.h> | 19 | #include <linux/moduleloader.h> |
20 | #include <linux/vmalloc.h> | 20 | #include <linux/vmalloc.h> |
21 | 21 | ||
22 | void *module_alloc(unsigned long size) | ||
23 | { | ||
24 | if (size == 0) | ||
25 | return NULL; | ||
26 | return vmalloc(size); | ||
27 | } | ||
28 | |||
29 | void module_free(struct module *mod, void *module_region) | 22 | void module_free(struct module *mod, void *module_region) |
30 | { | 23 | { |
31 | vfree(mod->arch.syminfo); | 24 | vfree(mod->arch.syminfo); |
@@ -299,15 +292,6 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab, | |||
299 | return ret; | 292 | return ret; |
300 | } | 293 | } |
301 | 294 | ||
302 | int apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, | ||
303 | unsigned int symindex, unsigned int relindex, | ||
304 | struct module *module) | ||
305 | { | ||
306 | printk(KERN_ERR "module %s: REL relocations are not supported\n", | ||
307 | module->name); | ||
308 | return -ENOEXEC; | ||
309 | } | ||
310 | |||
311 | int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, | 295 | int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, |
312 | struct module *module) | 296 | struct module *module) |
313 | { | 297 | { |
@@ -316,7 +300,3 @@ int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, | |||
316 | 300 | ||
317 | return 0; | 301 | return 0; |
318 | } | 302 | } |
319 | |||
320 | void module_arch_cleanup(struct module *module) | ||
321 | { | ||
322 | } | ||