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/alpha | |
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/alpha')
-rw-r--r-- | arch/alpha/kernel/module.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/alpha/kernel/module.c b/arch/alpha/kernel/module.c index ebc3c894b5a2..2fd00b7077e4 100644 --- a/arch/alpha/kernel/module.c +++ b/arch/alpha/kernel/module.c | |||
@@ -29,20 +29,6 @@ | |||
29 | #define DEBUGP(fmt...) | 29 | #define DEBUGP(fmt...) |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | void * | ||
33 | module_alloc(unsigned long size) | ||
34 | { | ||
35 | if (size == 0) | ||
36 | return NULL; | ||
37 | return vmalloc(size); | ||
38 | } | ||
39 | |||
40 | void | ||
41 | module_free(struct module *mod, void *module_region) | ||
42 | { | ||
43 | vfree(module_region); | ||
44 | } | ||
45 | |||
46 | /* Allocate the GOT at the end of the core sections. */ | 32 | /* Allocate the GOT at the end of the core sections. */ |
47 | 33 | ||
48 | struct got_entry { | 34 | struct got_entry { |
@@ -156,14 +142,6 @@ module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs, | |||
156 | } | 142 | } |
157 | 143 | ||
158 | int | 144 | int |
159 | apply_relocate(Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, | ||
160 | unsigned int relsec, struct module *me) | ||
161 | { | ||
162 | printk(KERN_ERR "module %s: REL relocation unsupported\n", me->name); | ||
163 | return -ENOEXEC; | ||
164 | } | ||
165 | |||
166 | int | ||
167 | apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, | 145 | apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, |
168 | unsigned int symindex, unsigned int relsec, | 146 | unsigned int symindex, unsigned int relsec, |
169 | struct module *me) | 147 | struct module *me) |
@@ -302,15 +280,3 @@ apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, | |||
302 | 280 | ||
303 | return 0; | 281 | return 0; |
304 | } | 282 | } |
305 | |||
306 | int | ||
307 | module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, | ||
308 | struct module *me) | ||
309 | { | ||
310 | return 0; | ||
311 | } | ||
312 | |||
313 | void | ||
314 | module_arch_cleanup(struct module *mod) | ||
315 | { | ||
316 | } | ||